Esempio n. 1
0
 /**
  * getClass method test.
  * @return void
  */
 public function testClass()
 {
     $obj = new TestClass();
     $this->assertEquals("TestClass", $obj->getClass());
     $this->assertEquals("TestClass", $obj->class);
     if (version_compare(PHP_VERSION, '5.3.0', '>=')) {
         $this->assertEquals("TestClass", Test::getClass());
         $class = 'TestClass';
         $this->assertEquals("TestClass", eval('return $class::getClass();'));
         //$this->assertEquals("TestClass", $class::getClass());
     }
 }