1, 'required' => 2), $this); $this->assertEqual($annotation->optional, 1); $this->assertEqual($annotation->required, 2); } public function testConstructorThrowsErrorOnInvalidParameter() { $this->expectError("Property 'unknown' not defined for annotation 'TestingAnnotation'"); $annotation = new TestingAnnotation(array('unknown' => 1), $this); } public function TODO_testConstructorThrowsErrorWithoutSpecifingRequiredParameters() { $this->expectError("Property 'required' in annotation 'TestingAnnotation' is required"); $annotation = new TestingAnnotation(); } } ?>