Example #1
0
 public function testReflection()
 {
     $obj = new TestObject();
     $reflection = $obj->getReflection();
     $this->assertTrue($reflection instanceof ReflectionClass);
     $this->assertTrue($reflection instanceof Sabel_Reflection_Class);
     $this->assertEquals("TestObject", $reflection->getName());
     $this->assertTrue($reflection->hasMethod("hoge"));
 }