コード例 #1
0
 /**
  * @todo Implement testNotify().
  *
  * @covers  JObservable::notify
  */
 public function testNotify()
 {
     // Remove the following lines when you implement this test.
     $this->markTestIncomplete('This test has not been implemented yet.');
     $obj1 = new JObserverMock($this->object);
     $obj2 = new JObserverMock($this->object);
     $obj2->name = 'JObserverMock2';
     $this->object->_observers = array($obj1, $obj2);
     $this->assertThat($this->object->notify(), $this->equalTo(array('JObserverMock', 'JObserverMock2')));
 }
コード例 #2
0
ファイル: dispatcher.php プロジェクト: jicheng17/comanova
 /**
  * Constructor
  *
  * @access	protected
  */
 function __construct()
 {
     parent::__construct();
 }