Author: Ralph Schindler (ralph.schindler@zend.com)
Author: Sebastian Bergmann (sebastian@phpunit.de)
Inheritance: implements PHPUnit_Framework_TestListener
Beispiel #1
0
 /**
  * @return mixed
  * @throws RuntimeException
  */
 protected function runTest()
 {
     PHPUnit_Util_DeprecatedFeature_Logger::log('The functionality of PHPUnit_Extensions_OutputTestCase has been ' . 'merged into PHPUnit_Framework_TestCase. Please update your test ' . 'by extending PHPUnit_Framework_TestCase instead of ' . 'PHPUnit_Extensions_OutputTestCase.');
     return parent::runTest();
 }
Beispiel #2
0
 /**
  * A test ended.
  *
  * @param  PHPUnit_Framework_Test $test
  * @param  float                  $time
  */
 public function endTest(PHPUnit_Framework_Test $test, $time)
 {
     self::$currentTest = NULL;
 }
 /**
  * Asserts that an attribute is of a given type.
  *
  * @param  string  $expected
  * @param  string  $attributeName
  * @param  mixed   $classOrObject
  * @param  string  $message
  * @since  Method available since Release 3.4.0
  * @deprecated
  */
 public static function assertAttributeNotType($expected, $attributeName, $classOrObject, $message = '')
 {
     PHPUnit_Util_DeprecatedFeature_Logger::log('assertAttributeNotType() will be removed in PHPUnit 3.6 and ' . 'should no longer be used. assertAttributeNotInternalType() should ' . 'be used for asserting internal types such as "integer" or ' . '"string" whereas assertAttributeNotInstanceOf() should be used ' . 'for asserting that an object is an instance of a specified class ' . 'or interface.');
     self::assertNotType($expected, self::readAttribute($classOrObject, $attributeName), $message);
 }