• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

chajr / class-event / 21 / 3
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: develop
DEFAULT BRANCH: master
Ran 21 Jun 2015 04:14PM UTC
Files 7
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

21 Jun 2015 04:13PM UTC coverage: 95.58% (+9.5%) from 86.111%
21.3

push

travis-ci

chajr
Added tests and fixed some errors

This version introduces multiple enhancements:

fixed exception throwing in dispatcher initializer
all dispatcher methods that need instance name will check that instance exists
if instance don't exist dispatcher will throw RuntimeException
added some tests and assertions

Details of additions/deletions below:
--------------------------------------------------------------

Modified:   Event/EventDispatcher.php
            -- Updated --
                init added checking that created event manager instance is correct
                getCalledEvents added checking that instance exists
                getEventConfiguration added checking that instance exists
                getErrors added checking that instance exists
                hasErrors added checking that instance exists
                clearErrors added checking that instance exists
                _getInstance if instance don't exists will throw RunetimeException

Modified:   Event/Base/EventManager.php
            -- Updated --
                _configurationStrategy remove default case from switch

Modified:   EventDispatcherTest.php
            -- Added --
                testGetNoneExistingInstance initialize dispatcher with error
                testEventInitializeWithError test that dispatcher throw exception if event manager is incorrect
            -- Updated --
                testEventInstanceCreation added some assertions for dispatcher initializer
                testGettingAllCreatedEvents added test logic
                testErrorHandling added test logic
                IncorrectEventManager added empty __construct

Modified:   README.md
            -- Added --
                versioneye badge

173 of 181 relevant lines covered (95.58%)

3.22 hits per line

Source Files on job 21.3
  • Tree
  • List 0
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 21
  • Travis Job 21.3
  • 819c3fb4 on github
  • Prev Job for on develop (#20.3)
  • Next Job for on develop (#22.2)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc