コード例 #1
0
 /**
  * @test
  * @since  3.3.1
  */
 public function annotationsPresentOnConstructor()
 {
     $annotations = annotationsOfConstructor($this->exceptionLogger);
     assertTrue($annotations->contain('Named'));
     assert($annotations->named('Named')[0]->getName(), equals('stubbles.project.path'));
 }
コード例 #2
0
 /**
  * @test
  */
 public function annotationsPresent()
 {
     $annotations = annotationsOfConstructor($this->fileStreamFactory);
     assertTrue($annotations->contain('Property'));
     assert($annotations->named('Property')[0]->getName(), equals('stubbles.filemode'));
 }