|
|
@@ -49,6 +49,28 @@ class TestCaseTest extends TestCase
|
|
|
{
|
|
|
|
|
|
/**
|
|
|
+ * tests trying to assertEventFired without configuring an event list
|
|
|
+ *
|
|
|
+ * @expectedException \PHPUnit_Framework_AssertionFailedError
|
|
|
+ */
|
|
|
+ public function testEventFiredMisconfiguredEventList()
|
|
|
+ {
|
|
|
+ $manager = EventManager::instance();
|
|
|
+ $this->assertEventFired('my.event', $manager);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * tests trying to assertEventFired without configuring an event list
|
|
|
+ *
|
|
|
+ * @expectedException \PHPUnit_Framework_AssertionFailedError
|
|
|
+ */
|
|
|
+ public function testEventFiredWithMisconfiguredEventList()
|
|
|
+ {
|
|
|
+ $manager = EventManager::instance();
|
|
|
+ $this->assertEventFiredWith('my.event', 'some', 'data', $manager);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
* tests assertEventFiredWith
|
|
|
*
|
|
|
* @return void
|