Example #1
0
 /**
  * Make sure an exception is thrown if the subject is already registered.
  */
 public function testRegisterSubjectDuplicate()
 {
     $subject = new Subject();
     $this->collection->registerSubject('test', $subject);
     $this->setExpectedException('Phine\\Observer\\Exception\\CollectionException', 'The "test" subject unique identifier is already in use.');
     $this->collection->registerSubject('test', $subject);
 }