class Framework_AssertTest

@package PHPUnit @author Sebastian Bergmann <sebastian@phpunit.de> @author Bernhard Schussek <bschussek@2bepublished.at> @copyright 2001-2013 Sebastian Bergmann <sebastian@phpunit.de> @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License @link http://www.phpunit.de/ @since Class available since Release 2.0.0

Hierarchy

Expanded class hierarchy of Framework_AssertTest

File

drupal/core/vendor/phpunit/phpunit/Tests/Framework/AssertTest.php, line 65

View source
class Framework_AssertTest extends PHPUnit_Framework_TestCase {
  protected $filesDirectory;
  protected function setUp() {
    $this->filesDirectory = dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR;
    $this->html = file_get_contents($this->filesDirectory . 'SelectorAssertionsFixture.html');
  }

  /**
   * @covers PHPUnit_Framework_Assert::fail
   */
  public function testFail() {
    try {
      $this
        ->fail();
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    throw new PHPUnit_Framework_AssertionFailedError('Fail did not throw fail exception');
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertContains
   */
  public function testAssertSplObjectStorageContainsObject() {
    $a = new stdClass();
    $b = new stdClass();
    $c = new SplObjectStorage();
    $c
      ->attach($a);
    $this
      ->assertContains($a, $c);
    try {
      $this
        ->assertContains($b, $c);
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertContains
   */
  public function testAssertArrayContainsObject() {
    $a = new stdClass();
    $b = new stdClass();
    $this
      ->assertContains($a, array(
      $a,
    ));
    try {
      $this
        ->assertContains($a, array(
        $b,
      ));
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertContains
   */
  public function testAssertArrayContainsString() {
    $this
      ->assertContains('foo', array(
      'foo',
    ));
    try {
      $this
        ->assertContains('foo', array(
        'bar',
      ));
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertContainsOnlyInstancesOf
   */
  public function testAssertContainsOnlyInstancesOf() {
    $test = array(
      new Book(),
      new Book(),
    );
    $this
      ->assertContainsOnlyInstancesOf('Book', $test);
    $this
      ->assertContainsOnlyInstancesOf('stdClass', array(
      new stdClass(),
    ));
    $test2 = array(
      new Author('Test'),
    );
    try {
      $this
        ->assertContainsOnlyInstancesOf('Book', $test2);
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertArrayHasKey
   * @expectedException PHPUnit_Framework_Exception
   */
  public function testAssertArrayHasKeyThrowsException() {
    $this
      ->assertArrayHasKey(NULL, array());
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertArrayHasKey
   */
  public function testAssertArrayHasIntegerKey() {
    $this
      ->assertArrayHasKey(0, array(
      'foo',
    ));
    try {
      $this
        ->assertArrayHasKey(1, array(
        'foo',
      ));
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertArrayNotHasKey
   * @expectedException PHPUnit_Framework_Exception
   */
  public function testAssertArrayNotHasKeyThrowsException() {
    $this
      ->assertArrayNotHasKey(NULL, array());
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertArrayNotHasKey
   */
  public function testAssertArrayNotHasIntegerKey() {
    $this
      ->assertArrayNotHasKey(1, array(
      'foo',
    ));
    try {
      $this
        ->assertArrayNotHasKey(0, array(
        'foo',
      ));
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertArrayHasKey
   */
  public function testAssertArrayHasStringKey() {
    $this
      ->assertArrayHasKey('foo', array(
      'foo' => 'bar',
    ));
    try {
      $this
        ->assertArrayHasKey('bar', array(
        'foo' => 'bar',
      ));
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertArrayNotHasKey
   */
  public function testAssertArrayNotHasStringKey() {
    $this
      ->assertArrayNotHasKey('bar', array(
      'foo' => 'bar',
    ));
    try {
      $this
        ->assertArrayNotHasKey('foo', array(
        'foo' => 'bar',
      ));
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertArrayHasKey
   */
  public function testAssertArrayHasKeyAcceptsArrayAccessValue() {
    $array = new ArrayObject();
    $array['foo'] = 'bar';
    $this
      ->assertArrayHasKey('foo', $array);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertArrayHasKey
   * @expectedException PHPUnit_Framework_AssertionFailedError
   */
  public function testAssertArrayHasKeyProperlyFailsWithArrayAccessValue() {
    $array = new ArrayObject();
    $array['bar'] = 'bar';
    $this
      ->assertArrayHasKey('foo', $array);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertArrayNotHasKey
   */
  public function testAssertArrayNotHasKeyAcceptsArrayAccessValue() {
    $array = new ArrayObject();
    $array['foo'] = 'bar';
    $this
      ->assertArrayNotHasKey('bar', $array);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertArrayNotHasKey
   * @expectedException PHPUnit_Framework_AssertionFailedError
   */
  public function testAssertArrayNotHasKeyPropertlyFailsWithArrayAccessValue() {
    $array = new ArrayObject();
    $array['bar'] = 'bar';
    $this
      ->assertArrayNotHasKey('bar', $array);
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertContains
   * @expectedException PHPUnit_Framework_Exception
   */
  public function testAssertContainsThrowsException() {
    $this
      ->assertContains(NULL, NULL);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertContains
   */
  public function testAssertIteratorContainsObject() {
    $foo = new stdClass();
    $this
      ->assertContains($foo, new TestIterator(array(
      $foo,
    )));
    try {
      $this
        ->assertContains($foo, new TestIterator(array(
        new stdClass(),
      )));
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertContains
   */
  public function testAssertIteratorContainsString() {
    $this
      ->assertContains('foo', new TestIterator(array(
      'foo',
    )));
    try {
      $this
        ->assertContains('foo', new TestIterator(array(
        'bar',
      )));
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertContains
   */
  public function testAssertStringContainsString() {
    $this
      ->assertContains('foo', 'foobar');
    try {
      $this
        ->assertContains('foo', 'bar');
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertNotContains
   * @expectedException PHPUnit_Framework_Exception
   */
  public function testAssertNotContainsThrowsException() {
    $this
      ->assertNotContains(NULL, NULL);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertNotContains
   */
  public function testAssertSplObjectStorageNotContainsObject() {
    $a = new stdClass();
    $b = new stdClass();
    $c = new SplObjectStorage();
    $c
      ->attach($a);
    $this
      ->assertNotContains($b, $c);
    try {
      $this
        ->assertNotContains($a, $c);
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertNotContains
   */
  public function testAssertArrayNotContainsObject() {
    $a = new stdClass();
    $b = new stdClass();
    $this
      ->assertNotContains($a, array(
      $b,
    ));
    try {
      $this
        ->assertNotContains($a, array(
        $a,
      ));
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertNotContains
   */
  public function testAssertArrayNotContainsString() {
    $this
      ->assertNotContains('foo', array(
      'bar',
    ));
    try {
      $this
        ->assertNotContains('foo', array(
        'foo',
      ));
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertNotContains
   */
  public function testAssertStringNotContainsString() {
    $this
      ->assertNotContains('foo', 'bar');
    try {
      $this
        ->assertNotContains('foo', 'foo');
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertContainsOnly
   * @expectedException PHPUnit_Framework_Exception
   */
  public function testAssertContainsOnlyThrowsException() {
    $this
      ->assertContainsOnly(NULL, NULL);
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertContainsOnlyInstancesOf
   * @expectedException PHPUnit_Framework_Exception
   */
  public function testAssertContainsOnlyInstancesOfThrowsException() {
    $this
      ->assertContainsOnlyInstancesOf(NULL, NULL);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertContainsOnly
   */
  public function testAssertArrayContainsOnlyIntegers() {
    $this
      ->assertContainsOnly('integer', array(
      1,
      2,
      3,
    ));
    try {
      $this
        ->assertContainsOnly('integer', array(
        "1",
        2,
        3,
      ));
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertNotContainsOnly
   */
  public function testAssertArrayNotContainsOnlyIntegers() {
    $this
      ->assertNotContainsOnly('integer', array(
      "1",
      2,
      3,
    ));
    try {
      $this
        ->assertNotContainsOnly('integer', array(
        1,
        2,
        3,
      ));
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertContainsOnly
   */
  public function testAssertArrayContainsOnlyStdClass() {
    $this
      ->assertContainsOnly('StdClass', array(
      new StdClass(),
    ));
    try {
      $this
        ->assertContainsOnly('StdClass', array(
        'StdClass',
      ));
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertNotContainsOnly
   */
  public function testAssertArrayNotContainsOnlyStdClass() {
    $this
      ->assertNotContainsOnly('StdClass', array(
      'StdClass',
    ));
    try {
      $this
        ->assertNotContainsOnly('StdClass', array(
        new StdClass(),
      ));
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }
  protected function createDOMDocument($content) {
    $document = new DOMDocument();
    $document->preserveWhiteSpace = FALSE;
    $document
      ->loadXML($content);
    return $document;
  }
  protected function sameValues() {
    $object = new SampleClass(4, 8, 15);

    // cannot use $filesDirectory, because neither setUp() nor
    // setUpBeforeClass() are executed before the data providers
    $file = dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'foo.xml';
    $resource = fopen($file, 'r');
    return array(
      // NULL
      array(
        NULL,
        NULL,
      ),
      // strings
      array(
        'a',
        'a',
      ),
      // integers
      array(
        0,
        0,
      ),
      // floats
      array(
        2.3,
        2.3,
      ),
      array(
        1 / 3,
        1 - 2 / 3,
      ),
      array(
        log(0),
        log(0),
      ),
      // arrays
      array(
        array(),
        array(),
      ),
      array(
        array(
          0 => 1,
        ),
        array(
          0 => 1,
        ),
      ),
      array(
        array(
          0 => NULL,
        ),
        array(
          0 => NULL,
        ),
      ),
      array(
        array(
          'a',
          'b' => array(
            1,
            2,
          ),
        ),
        array(
          'a',
          'b' => array(
            1,
            2,
          ),
        ),
      ),
      // objects
      array(
        $object,
        $object,
      ),
      // resources
      array(
        $resource,
        $resource,
      ),
    );
  }
  protected function notEqualValues() {

    // cyclic dependencies
    $book1 = new Book();
    $book1->author = new Author('Terry Pratchett');
    $book1->author->books[] = $book1;
    $book2 = new Book();
    $book2->author = new Author('Terry Pratch');
    $book2->author->books[] = $book2;
    $book3 = new Book();
    $book3->author = 'Terry Pratchett';
    $book4 = new stdClass();
    $book4->author = 'Terry Pratchett';
    $object1 = new SampleClass(4, 8, 15);
    $object2 = new SampleClass(16, 23, 42);
    $object3 = new SampleClass(4, 8, 15);
    $storage1 = new SplObjectStorage();
    $storage1
      ->attach($object1);
    $storage2 = new SplObjectStorage();
    $storage2
      ->attach($object3);

    // same content, different object
    // cannot use $filesDirectory, because neither setUp() nor
    // setUpBeforeClass() are executed before the data providers
    $file = dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'foo.xml';
    return array(
      // strings
      array(
        'a',
        'b',
      ),
      array(
        'a',
        'A',
      ),
      // integers
      array(
        1,
        2,
      ),
      array(
        2,
        1,
      ),
      // floats
      array(
        2.3,
        4.2,
      ),
      array(
        2.3,
        4.2,
        0.5,
      ),
      array(
        array(
          2.3,
        ),
        array(
          4.2,
        ),
        0.5,
      ),
      array(
        array(
          array(
            2.3,
          ),
        ),
        array(
          array(
            4.2,
          ),
        ),
        0.5,
      ),
      array(
        new Struct(2.3),
        new Struct(4.2),
        0.5,
      ),
      array(
        array(
          new Struct(2.3),
        ),
        array(
          new Struct(4.2),
        ),
        0.5,
      ),
      // NAN
      array(
        NAN,
        NAN,
      ),
      // arrays
      array(
        array(),
        array(
          0 => 1,
        ),
      ),
      array(
        array(
          0 => 1,
        ),
        array(),
      ),
      array(
        array(
          0 => NULL,
        ),
        array(),
      ),
      array(
        array(
          0 => 1,
          1 => 2,
        ),
        array(
          0 => 1,
          1 => 3,
        ),
      ),
      array(
        array(
          'a',
          'b' => array(
            1,
            2,
          ),
        ),
        array(
          'a',
          'b' => array(
            2,
            1,
          ),
        ),
      ),
      // objects
      array(
        new SampleClass(4, 8, 15),
        new SampleClass(16, 23, 42),
      ),
      array(
        $object1,
        $object2,
      ),
      array(
        $book1,
        $book2,
      ),
      array(
        $book3,
        $book4,
      ),
      // same content, different class
      // resources
      array(
        fopen($file, 'r'),
        fopen($file, 'r'),
      ),
      // SplObjectStorage
      array(
        $storage1,
        $storage2,
      ),
      // DOMDocument
      array(
        $this
          ->createDOMDocument('<root></root>'),
        $this
          ->createDOMDocument('<bar/>'),
      ),
      array(
        $this
          ->createDOMDocument('<foo attr1="bar"/>'),
        $this
          ->createDOMDocument('<foo attr1="foobar"/>'),
      ),
      array(
        $this
          ->createDOMDocument('<foo> bar </foo>'),
        $this
          ->createDOMDocument('<foo />'),
      ),
      array(
        $this
          ->createDOMDocument('<foo xmlns="urn:myns:bar"/>'),
        $this
          ->createDOMDocument('<foo xmlns="urn:notmyns:bar"/>'),
      ),
      array(
        $this
          ->createDOMDocument('<foo> bar </foo>'),
        $this
          ->createDOMDocument('<foo> bir </foo>'),
      ),
      // Exception

      //array(new Exception('Exception 1'), new Exception('Exception 2')),

      // different types
      array(
        new SampleClass(4, 8, 15),
        FALSE,
      ),
      array(
        FALSE,
        new SampleClass(4, 8, 15),
      ),
      array(
        array(
          0 => 1,
          1 => 2,
        ),
        FALSE,
      ),
      array(
        FALSE,
        array(
          0 => 1,
          1 => 2,
        ),
      ),
      array(
        array(),
        new stdClass(),
      ),
      array(
        new stdClass(),
        array(),
      ),
      // PHP: 0 == 'Foobar' => TRUE!
      // We want these values to differ
      array(
        0,
        'Foobar',
      ),
      array(
        'Foobar',
        0,
      ),
      array(
        3,
        acos(8),
      ),
      array(
        acos(8),
        3,
      ),
    );
  }
  protected function equalValues() {

    // cyclic dependencies
    $book1 = new Book();
    $book1->author = new Author('Terry Pratchett');
    $book1->author->books[] = $book1;
    $book2 = new Book();
    $book2->author = new Author('Terry Pratchett');
    $book2->author->books[] = $book2;
    $object1 = new SampleClass(4, 8, 15);
    $object2 = new SampleClass(4, 8, 15);
    $storage1 = new SplObjectStorage();
    $storage1
      ->attach($object1);
    $storage2 = new SplObjectStorage();
    $storage2
      ->attach($object1);
    return array(
      // strings
      array(
        'a',
        'A',
        0,
        FALSE,
        TRUE,
      ),
      // ignore case
      // arrays
      array(
        array(
          'a' => 1,
          'b' => 2,
        ),
        array(
          'b' => 2,
          'a' => 1,
        ),
      ),
      array(
        array(
          1,
        ),
        array(
          '1',
        ),
      ),
      array(
        array(
          3,
          2,
          1,
        ),
        array(
          2,
          3,
          1,
        ),
        0,
        TRUE,
      ),
      // canonicalized comparison
      // floats
      array(
        2.3,
        2.5,
        0.5,
      ),
      array(
        array(
          2.3,
        ),
        array(
          2.5,
        ),
        0.5,
      ),
      array(
        array(
          array(
            2.3,
          ),
        ),
        array(
          array(
            2.5,
          ),
        ),
        0.5,
      ),
      array(
        new Struct(2.3),
        new Struct(2.5),
        0.5,
      ),
      array(
        array(
          new Struct(2.3),
        ),
        array(
          new Struct(2.5),
        ),
        0.5,
      ),
      // numeric with delta
      array(
        1,
        2,
        1,
      ),
      // objects
      array(
        $object1,
        $object2,
      ),
      array(
        $book1,
        $book2,
      ),
      // SplObjectStorage
      array(
        $storage1,
        $storage2,
      ),
      // DOMDocument
      array(
        $this
          ->createDOMDocument('<root></root>'),
        $this
          ->createDOMDocument('<root/>'),
      ),
      array(
        $this
          ->createDOMDocument('<root attr="bar"></root>'),
        $this
          ->createDOMDocument('<root attr="bar"/>'),
      ),
      array(
        $this
          ->createDOMDocument('<root><foo attr="bar"></foo></root>'),
        $this
          ->createDOMDocument('<root><foo attr="bar"/></root>'),
      ),
      array(
        $this
          ->createDOMDocument("<root>\n  <child/>\n</root>"),
        $this
          ->createDOMDocument('<root><child/></root>'),
      ),
      // Exception

      //array(new Exception('Exception 1'), new Exception('Exception 1')),

      // mixed types
      array(
        0,
        '0',
      ),
      array(
        '0',
        0,
      ),
      array(
        2.3,
        '2.3',
      ),
      array(
        '2.3',
        2.3,
      ),
      array(
        (string) (1 / 3),
        1 - 2 / 3,
      ),
      array(
        1 / 3,
        (string) (1 - 2 / 3),
      ),
      array(
        'string representation',
        new ClassWithToString(),
      ),
      array(
        new ClassWithToString(),
        'string representation',
      ),
    );
  }
  public function equalProvider() {

    // same |= equal
    return array_merge($this
      ->equalValues(), $this
      ->sameValues());
  }
  public function notEqualProvider() {
    return $this
      ->notEqualValues();
  }
  public function sameProvider() {
    return $this
      ->sameValues();
  }
  public function notSameProvider() {

    // not equal |= not same
    // equal, ¬same |= not same
    return array_merge($this
      ->notEqualValues(), $this
      ->equalValues());
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertEquals
   * @dataProvider equalProvider
   */
  public function testAssertEqualsSucceeds($a, $b, $delta = 0, $canonicalize = FALSE, $ignoreCase = FALSE) {
    $this
      ->assertEquals($a, $b, '', $delta, 10, $canonicalize, $ignoreCase);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertEquals
   * @dataProvider notEqualProvider
   */
  public function testAssertEqualsFails($a, $b, $delta = 0, $canonicalize = FALSE, $ignoreCase = FALSE) {
    try {
      $this
        ->assertEquals($a, $b, '', $delta, 10, $canonicalize, $ignoreCase);
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertNotEquals
   * @dataProvider notEqualProvider
   */
  public function testAssertNotEqualsSucceeds($a, $b, $delta = 0, $canonicalize = FALSE, $ignoreCase = FALSE) {
    $this
      ->assertNotEquals($a, $b, '', $delta, 10, $canonicalize, $ignoreCase);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertNotEquals
   * @dataProvider equalProvider
   */
  public function testAssertNotEqualsFails($a, $b, $delta = 0, $canonicalize = FALSE, $ignoreCase = FALSE) {
    try {
      $this
        ->assertNotEquals($a, $b, '', $delta, 10, $canonicalize, $ignoreCase);
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertSame
   * @dataProvider sameProvider
   */
  public function testAssertSameSucceeds($a, $b) {
    $this
      ->assertSame($a, $b);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertSame
   * @dataProvider notSameProvider
   */
  public function testAssertSameFails($a, $b) {
    try {
      $this
        ->assertSame($a, $b);
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertNotSame
   * @dataProvider notSameProvider
   */
  public function testAssertNotSameSucceeds($a, $b) {
    $this
      ->assertNotSame($a, $b);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertNotSame
   * @dataProvider sameProvider
   */
  public function testAssertNotSameFails($a, $b) {
    try {
      $this
        ->assertNotSame($a, $b);
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertXmlFileEqualsXmlFile
   */
  public function testAssertXmlFileEqualsXmlFile() {
    $this
      ->assertXmlFileEqualsXmlFile($this->filesDirectory . 'foo.xml', $this->filesDirectory . 'foo.xml');
    try {
      $this
        ->assertXmlFileEqualsXmlFile($this->filesDirectory . 'foo.xml', $this->filesDirectory . 'bar.xml');
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertXmlFileNotEqualsXmlFile
   */
  public function testAssertXmlFileNotEqualsXmlFile() {
    $this
      ->assertXmlFileNotEqualsXmlFile($this->filesDirectory . 'foo.xml', $this->filesDirectory . 'bar.xml');
    try {
      $this
        ->assertXmlFileNotEqualsXmlFile($this->filesDirectory . 'foo.xml', $this->filesDirectory . 'foo.xml');
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertXmlStringEqualsXmlFile
   */
  public function testAssertXmlStringEqualsXmlFile() {
    $this
      ->assertXmlStringEqualsXmlFile($this->filesDirectory . 'foo.xml', file_get_contents($this->filesDirectory . 'foo.xml'));
    try {
      $this
        ->assertXmlStringEqualsXmlFile($this->filesDirectory . 'foo.xml', file_get_contents($this->filesDirectory . 'bar.xml'));
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertXmlStringNotEqualsXmlFile
   */
  public function testXmlStringNotEqualsXmlFile() {
    $this
      ->assertXmlStringNotEqualsXmlFile($this->filesDirectory . 'foo.xml', file_get_contents($this->filesDirectory . 'bar.xml'));
    try {
      $this
        ->assertXmlStringNotEqualsXmlFile($this->filesDirectory . 'foo.xml', file_get_contents($this->filesDirectory . 'foo.xml'));
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertXmlStringEqualsXmlString
   */
  public function testAssertXmlStringEqualsXmlString() {
    $this
      ->assertXmlStringEqualsXmlString('<root/>', '<root/>');
    try {
      $this
        ->assertXmlStringEqualsXmlString('<foo/>', '<bar/>');
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertXmlStringNotEqualsXmlString
   */
  public function testAssertXmlStringNotEqualsXmlString() {
    $this
      ->assertXmlStringNotEqualsXmlString('<foo/>', '<bar/>');
    try {
      $this
        ->assertXmlStringNotEqualsXmlString('<root/>', '<root/>');
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertEqualXMLStructure
   */
  public function testXMLStructureIsSame() {
    $expected = new DOMDocument();
    $expected
      ->load($this->filesDirectory . 'structureExpected.xml');
    $actual = new DOMDocument();
    $actual
      ->load($this->filesDirectory . 'structureExpected.xml');
    $this
      ->assertEqualXMLStructure($expected->firstChild, $actual->firstChild, TRUE);
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertEqualXMLStructure
   * @expectedException PHPUnit_Framework_ExpectationFailedException
   */
  public function testXMLStructureWrongNumberOfAttributes() {
    $expected = new DOMDocument();
    $expected
      ->load($this->filesDirectory . 'structureExpected.xml');
    $actual = new DOMDocument();
    $actual
      ->load($this->filesDirectory . 'structureWrongNumberOfAttributes.xml');
    $this
      ->assertEqualXMLStructure($expected->firstChild, $actual->firstChild, TRUE);
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertEqualXMLStructure
   * @expectedException PHPUnit_Framework_ExpectationFailedException
   */
  public function testXMLStructureWrongNumberOfNodes() {
    $expected = new DOMDocument();
    $expected
      ->load($this->filesDirectory . 'structureExpected.xml');
    $actual = new DOMDocument();
    $actual
      ->load($this->filesDirectory . 'structureWrongNumberOfNodes.xml');
    $this
      ->assertEqualXMLStructure($expected->firstChild, $actual->firstChild, TRUE);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertEqualXMLStructure
   */
  public function testXMLStructureIsSameButDataIsNot() {
    $expected = new DOMDocument();
    $expected
      ->load($this->filesDirectory . 'structureExpected.xml');
    $actual = new DOMDocument();
    $actual
      ->load($this->filesDirectory . 'structureIsSameButDataIsNot.xml');
    $this
      ->assertEqualXMLStructure($expected->firstChild, $actual->firstChild, TRUE);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertEqualXMLStructure
   */
  public function testXMLStructureAttributesAreSameButValuesAreNot() {
    $expected = new DOMDocument();
    $expected
      ->load($this->filesDirectory . 'structureExpected.xml');
    $actual = new DOMDocument();
    $actual
      ->load($this->filesDirectory . 'structureAttributesAreSameButValuesAreNot.xml');
    $this
      ->assertEqualXMLStructure($expected->firstChild, $actual->firstChild, TRUE);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertEqualXMLStructure
   */
  public function testXMLStructureIgnoreTextNodes() {
    $expected = new DOMDocument();
    $expected
      ->load($this->filesDirectory . 'structureExpected.xml');
    $actual = new DOMDocument();
    $actual
      ->load($this->filesDirectory . 'structureIgnoreTextNodes.xml');
    $this
      ->assertEqualXMLStructure($expected->firstChild, $actual->firstChild, TRUE);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertEquals
   */
  public function testAssertStringEqualsNumeric() {
    $this
      ->assertEquals('0', 0);
    try {
      $this
        ->assertEquals('0', 1);
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertNotEquals
   */
  public function testAssertStringEqualsNumeric2() {
    $this
      ->assertNotEquals('A', 0);
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertFileExists
   * @expectedException PHPUnit_Framework_Exception
   */
  public function testAssertFileExistsThrowsException() {
    $this
      ->assertFileExists(NULL);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertFileExists
   */
  public function testAssertFileExists() {
    $this
      ->assertFileExists(__FILE__);
    try {
      $this
        ->assertFileExists(__DIR__ . DIRECTORY_SEPARATOR . 'NotExisting');
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertFileNotExists
   * @expectedException PHPUnit_Framework_Exception
   */
  public function testAssertFileNotExistsThrowsException() {
    $this
      ->assertFileNotExists(NULL);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertFileNotExists
   */
  public function testAssertFileNotExists() {
    $this
      ->assertFileNotExists(__DIR__ . DIRECTORY_SEPARATOR . 'NotExisting');
    try {
      $this
        ->assertFileNotExists(__FILE__);
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertObjectHasAttribute
   */
  public function testAssertObjectHasAttribute() {
    $o = new Author('Terry Pratchett');
    $this
      ->assertObjectHasAttribute('name', $o);
    try {
      $this
        ->assertObjectHasAttribute('foo', $o);
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertObjectNotHasAttribute
   */
  public function testAssertObjectNotHasAttribute() {
    $o = new Author('Terry Pratchett');
    $this
      ->assertObjectNotHasAttribute('foo', $o);
    try {
      $this
        ->assertObjectNotHasAttribute('name', $o);
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertNull
   */
  public function testAssertNull() {
    $this
      ->assertNull(NULL);
    try {
      $this
        ->assertNull(new stdClass());
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertNotNull
   */
  public function testAssertNotNull() {
    $this
      ->assertNotNull(new stdClass());
    try {
      $this
        ->assertNotNull(NULL);
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertTrue
   */
  public function testAssertTrue() {
    $this
      ->assertTrue(TRUE);
    try {
      $this
        ->assertTrue(FALSE);
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertFalse
   */
  public function testAssertFalse() {
    $this
      ->assertFalse(FALSE);
    try {
      $this
        ->assertFalse(TRUE);
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertRegExp
   * @expectedException PHPUnit_Framework_Exception
   */
  public function testAssertRegExpThrowsException() {
    $this
      ->assertRegExp(NULL, NULL);
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertRegExp
   * @expectedException PHPUnit_Framework_Exception
   */
  public function testAssertRegExpThrowsException2() {
    $this
      ->assertRegExp('', NULL);
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertNotRegExp
   * @expectedException PHPUnit_Framework_Exception
   */
  public function testAssertNotRegExpThrowsException() {
    $this
      ->assertNotRegExp(NULL, NULL);
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertNotRegExp
   * @expectedException PHPUnit_Framework_Exception
   */
  public function testAssertNotRegExpThrowsException2() {
    $this
      ->assertNotRegExp('', NULL);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertRegExp
   */
  public function testAssertRegExp() {
    $this
      ->assertRegExp('/foo/', 'foobar');
    try {
      $this
        ->assertRegExp('/foo/', 'bar');
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertNotRegExp
   */
  public function testAssertNotRegExp() {
    $this
      ->assertNotRegExp('/foo/', 'bar');
    try {
      $this
        ->assertNotRegExp('/foo/', 'foobar');
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertSame
   */
  public function testAssertSame() {
    $o = new stdClass();
    $this
      ->assertSame($o, $o);
    try {
      $this
        ->assertSame(new stdClass(), new stdClass());
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertSame
   */
  public function testAssertSame2() {
    $this
      ->assertSame(TRUE, TRUE);
    $this
      ->assertSame(FALSE, FALSE);
    try {
      $this
        ->assertSame(TRUE, FALSE);
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertNotSame
   */
  public function testAssertNotSame() {
    $this
      ->assertNotSame(new stdClass(), NULL);
    $this
      ->assertNotSame(NULL, new stdClass());
    $this
      ->assertNotSame(new stdClass(), new stdClass());
    $o = new stdClass();
    try {
      $this
        ->assertNotSame($o, $o);
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertNotSame
   */
  public function testAssertNotSame2() {
    $this
      ->assertNotSame(TRUE, FALSE);
    $this
      ->assertNotSame(FALSE, TRUE);
    try {
      $this
        ->assertNotSame(TRUE, TRUE);
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertNotSame
   */
  public function testAssertNotSameFailsNull() {
    try {
      $this
        ->assertNotSame(NULL, NULL);
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertGreaterThan
   */
  public function testGreaterThan() {
    $this
      ->assertGreaterThan(1, 2);
    try {
      $this
        ->assertGreaterThan(2, 1);
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertAttributeGreaterThan
   */
  public function testAttributeGreaterThan() {
    $this
      ->assertAttributeGreaterThan(1, 'bar', new ClassWithNonPublicAttributes());
    try {
      $this
        ->assertAttributeGreaterThan(1, 'foo', new ClassWithNonPublicAttributes());
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertGreaterThanOrEqual
   */
  public function testGreaterThanOrEqual() {
    $this
      ->assertGreaterThanOrEqual(1, 2);
    try {
      $this
        ->assertGreaterThanOrEqual(2, 1);
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertAttributeGreaterThanOrEqual
   */
  public function testAttributeGreaterThanOrEqual() {
    $this
      ->assertAttributeGreaterThanOrEqual(1, 'bar', new ClassWithNonPublicAttributes());
    try {
      $this
        ->assertAttributeGreaterThanOrEqual(2, 'foo', new ClassWithNonPublicAttributes());
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertLessThan
   */
  public function testLessThan() {
    $this
      ->assertLessThan(2, 1);
    try {
      $this
        ->assertLessThan(1, 2);
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertAttributeLessThan
   */
  public function testAttributeLessThan() {
    $this
      ->assertAttributeLessThan(2, 'foo', new ClassWithNonPublicAttributes());
    try {
      $this
        ->assertAttributeLessThan(1, 'bar', new ClassWithNonPublicAttributes());
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertLessThanOrEqual
   */
  public function testLessThanOrEqual() {
    $this
      ->assertLessThanOrEqual(2, 1);
    try {
      $this
        ->assertLessThanOrEqual(1, 2);
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertAttributeLessThanOrEqual
   */
  public function testAttributeLessThanOrEqual() {
    $this
      ->assertAttributeLessThanOrEqual(2, 'foo', new ClassWithNonPublicAttributes());
    try {
      $this
        ->assertAttributeLessThanOrEqual(1, 'bar', new ClassWithNonPublicAttributes());
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::readAttribute
   */
  public function testReadAttribute() {
    $obj = new ClassWithNonPublicAttributes();
    $this
      ->assertEquals('foo', $this
      ->readAttribute($obj, 'publicAttribute'));
    $this
      ->assertEquals('bar', $this
      ->readAttribute($obj, 'protectedAttribute'));
    $this
      ->assertEquals('baz', $this
      ->readAttribute($obj, 'privateAttribute'));
    $this
      ->assertEquals('bar', $this
      ->readAttribute($obj, 'protectedParentAttribute'));

    //$this->assertEquals('bar', $this->readAttribute($obj, 'privateParentAttribute'));
  }

  /**
   * @covers PHPUnit_Framework_Assert::readAttribute
   */
  public function testReadAttribute2() {
    $this
      ->assertEquals('foo', $this
      ->readAttribute('ClassWithNonPublicAttributes', 'publicStaticAttribute'));
    $this
      ->assertEquals('bar', $this
      ->readAttribute('ClassWithNonPublicAttributes', 'protectedStaticAttribute'));
    $this
      ->assertEquals('baz', $this
      ->readAttribute('ClassWithNonPublicAttributes', 'privateStaticAttribute'));
    $this
      ->assertEquals('foo', $this
      ->readAttribute('ClassWithNonPublicAttributes', 'protectedStaticParentAttribute'));
    $this
      ->assertEquals('foo', $this
      ->readAttribute('ClassWithNonPublicAttributes', 'privateStaticParentAttribute'));
  }

  /**
   * @covers            PHPUnit_Framework_Assert::readAttribute
   * @expectedException PHPUnit_Framework_Exception
   */
  public function testReadAttribute3() {
    $this
      ->readAttribute('StdClass', NULL);
  }

  /**
   * @covers            PHPUnit_Framework_Assert::readAttribute
   * @expectedException PHPUnit_Framework_Exception
   */
  public function testReadAttribute4() {
    $this
      ->readAttribute('NotExistingClass', 'foo');
  }

  /**
   * @covers            PHPUnit_Framework_Assert::readAttribute
   * @expectedException PHPUnit_Framework_Exception
   */
  public function testReadAttribute5() {
    $this
      ->readAttribute(NULL, 'foo');
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertAttributeContains
   */
  public function testAssertPublicAttributeContains() {
    $obj = new ClassWithNonPublicAttributes();
    $this
      ->assertAttributeContains('foo', 'publicArray', $obj);
    try {
      $this
        ->assertAttributeContains('bar', 'publicArray', $obj);
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertAttributeContainsOnly
   */
  public function testAssertPublicAttributeContainsOnly() {
    $obj = new ClassWithNonPublicAttributes();
    $this
      ->assertAttributeContainsOnly('string', 'publicArray', $obj);
    try {
      $this
        ->assertAttributeContainsOnly('integer', 'publicArray', $obj);
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertAttributeNotContains
   */
  public function testAssertPublicAttributeNotContains() {
    $obj = new ClassWithNonPublicAttributes();
    $this
      ->assertAttributeNotContains('bar', 'publicArray', $obj);
    try {
      $this
        ->assertAttributeNotContains('foo', 'publicArray', $obj);
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertAttributeNotContainsOnly
   */
  public function testAssertPublicAttributeNotContainsOnly() {
    $obj = new ClassWithNonPublicAttributes();
    $this
      ->assertAttributeNotContainsOnly('integer', 'publicArray', $obj);
    try {
      $this
        ->assertAttributeNotContainsOnly('string', 'publicArray', $obj);
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertAttributeContains
   */
  public function testAssertProtectedAttributeContains() {
    $obj = new ClassWithNonPublicAttributes();
    $this
      ->assertAttributeContains('bar', 'protectedArray', $obj);
    try {
      $this
        ->assertAttributeContains('foo', 'protectedArray', $obj);
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertAttributeNotContains
   */
  public function testAssertProtectedAttributeNotContains() {
    $obj = new ClassWithNonPublicAttributes();
    $this
      ->assertAttributeNotContains('foo', 'protectedArray', $obj);
    try {
      $this
        ->assertAttributeNotContains('bar', 'protectedArray', $obj);
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertAttributeContains
   */
  public function testAssertPrivateAttributeContains() {
    $obj = new ClassWithNonPublicAttributes();
    $this
      ->assertAttributeContains('baz', 'privateArray', $obj);
    try {
      $this
        ->assertAttributeContains('foo', 'privateArray', $obj);
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertAttributeNotContains
   */
  public function testAssertPrivateAttributeNotContains() {
    $obj = new ClassWithNonPublicAttributes();
    $this
      ->assertAttributeNotContains('foo', 'privateArray', $obj);
    try {
      $this
        ->assertAttributeNotContains('baz', 'privateArray', $obj);
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertAttributeEquals
   */
  public function testAssertPublicAttributeEquals() {
    $obj = new ClassWithNonPublicAttributes();
    $this
      ->assertAttributeEquals('foo', 'publicAttribute', $obj);
    try {
      $this
        ->assertAttributeEquals('bar', 'publicAttribute', $obj);
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertAttributeNotEquals
   */
  public function testAssertPublicAttributeNotEquals() {
    $obj = new ClassWithNonPublicAttributes();
    $this
      ->assertAttributeNotEquals('bar', 'publicAttribute', $obj);
    try {
      $this
        ->assertAttributeNotEquals('foo', 'publicAttribute', $obj);
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertAttributeSame
   */
  public function testAssertPublicAttributeSame() {
    $obj = new ClassWithNonPublicAttributes();
    $this
      ->assertAttributeSame('foo', 'publicAttribute', $obj);
    try {
      $this
        ->assertAttributeSame('bar', 'publicAttribute', $obj);
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertAttributeNotSame
   */
  public function testAssertPublicAttributeNotSame() {
    $obj = new ClassWithNonPublicAttributes();
    $this
      ->assertAttributeNotSame('bar', 'publicAttribute', $obj);
    try {
      $this
        ->assertAttributeNotSame('foo', 'publicAttribute', $obj);
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertAttributeEquals
   */
  public function testAssertProtectedAttributeEquals() {
    $obj = new ClassWithNonPublicAttributes();
    $this
      ->assertAttributeEquals('bar', 'protectedAttribute', $obj);
    try {
      $this
        ->assertAttributeEquals('foo', 'protectedAttribute', $obj);
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertAttributeNotEquals
   */
  public function testAssertProtectedAttributeNotEquals() {
    $obj = new ClassWithNonPublicAttributes();
    $this
      ->assertAttributeNotEquals('foo', 'protectedAttribute', $obj);
    try {
      $this
        ->assertAttributeNotEquals('bar', 'protectedAttribute', $obj);
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertAttributeEquals
   */
  public function testAssertPrivateAttributeEquals() {
    $obj = new ClassWithNonPublicAttributes();
    $this
      ->assertAttributeEquals('baz', 'privateAttribute', $obj);
    try {
      $this
        ->assertAttributeEquals('foo', 'privateAttribute', $obj);
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertAttributeNotEquals
   */
  public function testAssertPrivateAttributeNotEquals() {
    $obj = new ClassWithNonPublicAttributes();
    $this
      ->assertAttributeNotEquals('foo', 'privateAttribute', $obj);
    try {
      $this
        ->assertAttributeNotEquals('baz', 'privateAttribute', $obj);
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertAttributeEquals
   */
  public function testAssertPublicStaticAttributeEquals() {
    $this
      ->assertAttributeEquals('foo', 'publicStaticAttribute', 'ClassWithNonPublicAttributes');
    try {
      $this
        ->assertAttributeEquals('bar', 'publicStaticAttribute', 'ClassWithNonPublicAttributes');
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertAttributeNotEquals
   */
  public function testAssertPublicStaticAttributeNotEquals() {
    $this
      ->assertAttributeNotEquals('bar', 'publicStaticAttribute', 'ClassWithNonPublicAttributes');
    try {
      $this
        ->assertAttributeNotEquals('foo', 'publicStaticAttribute', 'ClassWithNonPublicAttributes');
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertAttributeEquals
   */
  public function testAssertProtectedStaticAttributeEquals() {
    $this
      ->assertAttributeEquals('bar', 'protectedStaticAttribute', 'ClassWithNonPublicAttributes');
    try {
      $this
        ->assertAttributeEquals('foo', 'protectedStaticAttribute', 'ClassWithNonPublicAttributes');
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertAttributeNotEquals
   */
  public function testAssertProtectedStaticAttributeNotEquals() {
    $this
      ->assertAttributeNotEquals('foo', 'protectedStaticAttribute', 'ClassWithNonPublicAttributes');
    try {
      $this
        ->assertAttributeNotEquals('bar', 'protectedStaticAttribute', 'ClassWithNonPublicAttributes');
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertAttributeEquals
   */
  public function testAssertPrivateStaticAttributeEquals() {
    $this
      ->assertAttributeEquals('baz', 'privateStaticAttribute', 'ClassWithNonPublicAttributes');
    try {
      $this
        ->assertAttributeEquals('foo', 'privateStaticAttribute', 'ClassWithNonPublicAttributes');
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertAttributeNotEquals
   */
  public function testAssertPrivateStaticAttributeNotEquals() {
    $this
      ->assertAttributeNotEquals('foo', 'privateStaticAttribute', 'ClassWithNonPublicAttributes');
    try {
      $this
        ->assertAttributeNotEquals('baz', 'privateStaticAttribute', 'ClassWithNonPublicAttributes');
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertClassHasAttribute
   * @expectedException PHPUnit_Framework_Exception
   */
  public function testAssertClassHasAttributeThrowsException() {
    $this
      ->assertClassHasAttribute(NULL, NULL);
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertClassHasAttribute
   * @expectedException PHPUnit_Framework_Exception
   */
  public function testAssertClassHasAttributeThrowsException2() {
    $this
      ->assertClassHasAttribute('foo', NULL);
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertClassNotHasAttribute
   * @expectedException PHPUnit_Framework_Exception
   */
  public function testAssertClassNotHasAttributeThrowsException() {
    $this
      ->assertClassNotHasAttribute(NULL, NULL);
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertClassNotHasAttribute
   * @expectedException PHPUnit_Framework_Exception
   */
  public function testAssertClassNotHasAttributeThrowsException2() {
    $this
      ->assertClassNotHasAttribute('foo', NULL);
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertClassHasStaticAttribute
   * @expectedException PHPUnit_Framework_Exception
   */
  public function testAssertClassHasStaticAttributeThrowsException() {
    $this
      ->assertClassHasStaticAttribute(NULL, NULL);
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertClassHasStaticAttribute
   * @expectedException PHPUnit_Framework_Exception
   */
  public function testAssertClassHasStaticAttributeThrowsException2() {
    $this
      ->assertClassHasStaticAttribute('foo', NULL);
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertClassNotHasStaticAttribute
   * @expectedException PHPUnit_Framework_Exception
   */
  public function testAssertClassNotHasStaticAttributeThrowsException() {
    $this
      ->assertClassNotHasStaticAttribute(NULL, NULL);
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertClassNotHasStaticAttribute
   * @expectedException PHPUnit_Framework_Exception
   */
  public function testAssertClassNotHasStaticAttributeThrowsException2() {
    $this
      ->assertClassNotHasStaticAttribute('foo', NULL);
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertObjectHasAttribute
   * @expectedException PHPUnit_Framework_Exception
   */
  public function testAssertObjectHasAttributeThrowsException() {
    $this
      ->assertObjectHasAttribute(NULL, NULL);
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertObjectHasAttribute
   * @expectedException PHPUnit_Framework_Exception
   */
  public function testAssertObjectHasAttributeThrowsException2() {
    $this
      ->assertObjectHasAttribute('foo', NULL);
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertObjectNotHasAttribute
   * @expectedException PHPUnit_Framework_Exception
   */
  public function testAssertObjectNotHasAttributeThrowsException() {
    $this
      ->assertObjectNotHasAttribute(NULL, NULL);
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertObjectNotHasAttribute
   * @expectedException PHPUnit_Framework_Exception
   */
  public function testAssertObjectNotHasAttributeThrowsException2() {
    $this
      ->assertObjectNotHasAttribute('foo', NULL);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertClassHasAttribute
   */
  public function testClassHasPublicAttribute() {
    $this
      ->assertClassHasAttribute('publicAttribute', 'ClassWithNonPublicAttributes');
    try {
      $this
        ->assertClassHasAttribute('attribute', 'ClassWithNonPublicAttributes');
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertClassNotHasAttribute
   */
  public function testClassNotHasPublicAttribute() {
    $this
      ->assertClassNotHasAttribute('attribute', 'ClassWithNonPublicAttributes');
    try {
      $this
        ->assertClassNotHasAttribute('publicAttribute', 'ClassWithNonPublicAttributes');
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertClassHasStaticAttribute
   */
  public function testClassHasPublicStaticAttribute() {
    $this
      ->assertClassHasStaticAttribute('publicStaticAttribute', 'ClassWithNonPublicAttributes');
    try {
      $this
        ->assertClassHasStaticAttribute('attribute', 'ClassWithNonPublicAttributes');
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertClassNotHasStaticAttribute
   */
  public function testClassNotHasPublicStaticAttribute() {
    $this
      ->assertClassNotHasStaticAttribute('attribute', 'ClassWithNonPublicAttributes');
    try {
      $this
        ->assertClassNotHasStaticAttribute('publicStaticAttribute', 'ClassWithNonPublicAttributes');
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertObjectHasAttribute
   */
  public function testObjectHasPublicAttribute() {
    $obj = new ClassWithNonPublicAttributes();
    $this
      ->assertObjectHasAttribute('publicAttribute', $obj);
    try {
      $this
        ->assertObjectHasAttribute('attribute', $obj);
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertObjectNotHasAttribute
   */
  public function testObjectNotHasPublicAttribute() {
    $obj = new ClassWithNonPublicAttributes();
    $this
      ->assertObjectNotHasAttribute('attribute', $obj);
    try {
      $this
        ->assertObjectNotHasAttribute('publicAttribute', $obj);
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertObjectHasAttribute
   */
  public function testObjectHasOnTheFlyAttribute() {
    $obj = new StdClass();
    $obj->foo = 'bar';
    $this
      ->assertObjectHasAttribute('foo', $obj);
    try {
      $this
        ->assertObjectHasAttribute('bar', $obj);
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertObjectNotHasAttribute
   */
  public function testObjectNotHasOnTheFlyAttribute() {
    $obj = new StdClass();
    $obj->foo = 'bar';
    $this
      ->assertObjectNotHasAttribute('bar', $obj);
    try {
      $this
        ->assertObjectNotHasAttribute('foo', $obj);
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertObjectHasAttribute
   */
  public function testObjectHasProtectedAttribute() {
    $obj = new ClassWithNonPublicAttributes();
    $this
      ->assertObjectHasAttribute('protectedAttribute', $obj);
    try {
      $this
        ->assertObjectHasAttribute('attribute', $obj);
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertObjectNotHasAttribute
   */
  public function testObjectNotHasProtectedAttribute() {
    $obj = new ClassWithNonPublicAttributes();
    $this
      ->assertObjectNotHasAttribute('attribute', $obj);
    try {
      $this
        ->assertObjectNotHasAttribute('protectedAttribute', $obj);
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertObjectHasAttribute
   */
  public function testObjectHasPrivateAttribute() {
    $obj = new ClassWithNonPublicAttributes();
    $this
      ->assertObjectHasAttribute('privateAttribute', $obj);
    try {
      $this
        ->assertObjectHasAttribute('attribute', $obj);
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertObjectNotHasAttribute
   */
  public function testObjectNotHasPrivateAttribute() {
    $obj = new ClassWithNonPublicAttributes();
    $this
      ->assertObjectNotHasAttribute('attribute', $obj);
    try {
      $this
        ->assertObjectNotHasAttribute('privateAttribute', $obj);
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertThat
   * @covers PHPUnit_Framework_Assert::attribute
   * @covers PHPUnit_Framework_Assert::equalTo
   */
  public function testAssertThatAttributeEquals() {
    $this
      ->assertThat(new ClassWithNonPublicAttributes(), $this
      ->attribute($this
      ->equalTo('foo'), 'publicAttribute'));
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertThat
   * @covers            PHPUnit_Framework_Assert::attribute
   * @covers            PHPUnit_Framework_Assert::equalTo
   * @expectedException PHPUnit_Framework_AssertionFailedError
   */
  public function testAssertThatAttributeEquals2() {
    $this
      ->assertThat(new ClassWithNonPublicAttributes(), $this
      ->attribute($this
      ->equalTo('bar'), 'publicAttribute'));
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertThat
   * @covers PHPUnit_Framework_Assert::attribute
   * @covers PHPUnit_Framework_Assert::equalTo
   */
  public function testAssertThatAttributeEqualTo() {
    $this
      ->assertThat(new ClassWithNonPublicAttributes(), $this
      ->attributeEqualTo('publicAttribute', 'foo'));
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertThat
   * @covers PHPUnit_Framework_Assert::anything
   */
  public function testAssertThatAnything() {
    $this
      ->assertThat('anything', $this
      ->anything());
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertThat
   * @covers PHPUnit_Framework_Assert::anything
   * @covers PHPUnit_Framework_Assert::logicalAnd
   */
  public function testAssertThatAnythingAndAnything() {
    $this
      ->assertThat('anything', $this
      ->logicalAnd($this
      ->anything(), $this
      ->anything()));
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertThat
   * @covers PHPUnit_Framework_Assert::anything
   * @covers PHPUnit_Framework_Assert::logicalOr
   */
  public function testAssertThatAnythingOrAnything() {
    $this
      ->assertThat('anything', $this
      ->logicalOr($this
      ->anything(), $this
      ->anything()));
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertThat
   * @covers PHPUnit_Framework_Assert::anything
   * @covers PHPUnit_Framework_Assert::logicalNot
   * @covers PHPUnit_Framework_Assert::logicalXor
   */
  public function testAssertThatAnythingXorNotAnything() {
    $this
      ->assertThat('anything', $this
      ->logicalXor($this
      ->anything(), $this
      ->logicalNot($this
      ->anything())));
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertThat
   * @covers PHPUnit_Framework_Assert::contains
   */
  public function testAssertThatContains() {
    $this
      ->assertThat(array(
      'foo',
    ), $this
      ->contains('foo'));
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertThat
   * @covers PHPUnit_Framework_Assert::stringContains
   */
  public function testAssertThatStringContains() {
    $this
      ->assertThat('barfoobar', $this
      ->stringContains('foo'));
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertThat
   * @covers PHPUnit_Framework_Assert::containsOnly
   */
  public function testAssertThatContainsOnly() {
    $this
      ->assertThat(array(
      'foo',
    ), $this
      ->containsOnly('string'));
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertThat
   * @covers PHPUnit_Framework_Assert::containsOnlyInstancesOf
   */
  public function testAssertThatContainsOnlyInstancesOf() {
    $this
      ->assertThat(array(
      new Book(),
    ), $this
      ->containsOnlyInstancesOf('Book'));
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertThat
   * @covers PHPUnit_Framework_Assert::arrayHasKey
   */
  public function testAssertThatArrayHasKey() {
    $this
      ->assertThat(array(
      'foo' => 'bar',
    ), $this
      ->arrayHasKey('foo'));
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertThat
   * @covers PHPUnit_Framework_Assert::classHasAttribute
   */
  public function testAssertThatClassHasAttribute() {
    $this
      ->assertThat(new ClassWithNonPublicAttributes(), $this
      ->classHasAttribute('publicAttribute'));
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertThat
   * @covers PHPUnit_Framework_Assert::classHasStaticAttribute
   */
  public function testAssertThatClassHasStaticAttribute() {
    $this
      ->assertThat(new ClassWithNonPublicAttributes(), $this
      ->classHasStaticAttribute('publicStaticAttribute'));
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertThat
   * @covers PHPUnit_Framework_Assert::objectHasAttribute
   */
  public function testAssertThatObjectHasAttribute() {
    $this
      ->assertThat(new ClassWithNonPublicAttributes(), $this
      ->objectHasAttribute('publicAttribute'));
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertThat
   * @covers PHPUnit_Framework_Assert::equalTo
   */
  public function testAssertThatEqualTo() {
    $this
      ->assertThat('foo', $this
      ->equalTo('foo'));
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertThat
   * @covers PHPUnit_Framework_Assert::identicalTo
   */
  public function testAssertThatIdenticalTo() {
    $value = new StdClass();
    $constraint = $this
      ->identicalTo($value);
    $this
      ->assertThat($value, $constraint);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertThat
   * @covers PHPUnit_Framework_Assert::isInstanceOf
   */
  public function testAssertThatIsInstanceOf() {
    $this
      ->assertThat(new StdClass(), $this
      ->isInstanceOf('StdClass'));
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertThat
   * @covers PHPUnit_Framework_Assert::isType
   */
  public function testAssertThatIsType() {
    $this
      ->assertThat('string', $this
      ->isType('string'));
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertThat
   * @covers PHPUnit_Framework_Assert::fileExists
   */
  public function testAssertThatFileExists() {
    $this
      ->assertThat(__FILE__, $this
      ->fileExists());
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertThat
   * @covers PHPUnit_Framework_Assert::greaterThan
   */
  public function testAssertThatGreaterThan() {
    $this
      ->assertThat(2, $this
      ->greaterThan(1));
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertThat
   * @covers PHPUnit_Framework_Assert::greaterThanOrEqual
   */
  public function testAssertThatGreaterThanOrEqual() {
    $this
      ->assertThat(2, $this
      ->greaterThanOrEqual(1));
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertThat
   * @covers PHPUnit_Framework_Assert::lessThan
   */
  public function testAssertThatLessThan() {
    $this
      ->assertThat(1, $this
      ->lessThan(2));
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertThat
   * @covers PHPUnit_Framework_Assert::lessThanOrEqual
   */
  public function testAssertThatLessThanOrEqual() {
    $this
      ->assertThat(1, $this
      ->lessThanOrEqual(2));
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertThat
   * @covers PHPUnit_Framework_Assert::matchesRegularExpression
   */
  public function testAssertThatMatchesRegularExpression() {
    $this
      ->assertThat('foobar', $this
      ->matchesRegularExpression('/foo/'));
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertTag
   */
  public function testAssertTagTypeTrue() {
    $matcher = array(
      'tag' => 'html',
    );
    $this
      ->assertTag($matcher, $this->html);
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertTag
   * @expectedException PHPUnit_Framework_AssertionFailedError
   */
  public function testAssertTagTypeFalse() {
    $matcher = array(
      'tag' => 'code',
    );
    $this
      ->assertTag($matcher, $this->html);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertTag
   */
  public function testAssertTagIdTrue() {
    $matcher = array(
      'id' => 'test_text',
    );
    $this
      ->assertTag($matcher, $this->html);
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertTag
   * @expectedException PHPUnit_Framework_AssertionFailedError
   */
  public function testAssertTagIdFalse() {
    $matcher = array(
      'id' => 'test_text_doesnt_exist',
    );
    $this
      ->assertTag($matcher, $this->html);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertTag
   */
  public function testAssertTagStringContentTrue() {
    $matcher = array(
      'id' => 'test_text',
      'content' => 'My test tag content',
    );
    $this
      ->assertTag($matcher, $this->html);
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertTag
   * @expectedException PHPUnit_Framework_AssertionFailedError
   */
  public function testAssertTagStringContentFalse() {
    $matcher = array(
      'id' => 'test_text',
      'content' => 'My non existent tag content',
    );
    $this
      ->assertTag($matcher, $this->html);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertTag
   */
  public function testAssertTagRegexpContentTrue() {
    $matcher = array(
      'id' => 'test_text',
      'content' => 'regexp:/test tag/',
    );
    $this
      ->assertTag($matcher, $this->html);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertTag
   */
  public function testAssertTagRegexpModifierContentTrue() {
    $matcher = array(
      'id' => 'test_text',
      'content' => 'regexp:/TEST TAG/i',
    );
    $this
      ->assertTag($matcher, $this->html);
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertTag
   * @expectedException PHPUnit_Framework_AssertionFailedError
   */
  public function testAssertTagRegexpContentFalse() {
    $matcher = array(
      'id' => 'test_text',
      'content' => 'regexp:/asdf/',
    );
    $this
      ->assertTag($matcher, $this->html);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertTag
   */
  public function testAssertTagCdataContentTrue() {
    $matcher = array(
      'tag' => 'script',
      'content' => 'alert(\'Hello, world!\');',
    );
    $this
      ->assertTag($matcher, $this->html);
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertTag
   * @expectedException PHPUnit_Framework_AssertionFailedError
   */
  public function testAssertTagCdataontentFalse() {
    $matcher = array(
      'tag' => 'script',
      'content' => 'asdf',
    );
    $this
      ->assertTag($matcher, $this->html);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertTag
   */
  public function testAssertTagAttributesTrueA() {
    $matcher = array(
      'tag' => 'span',
      'attributes' => array(
        'class' => 'test_class',
      ),
    );
    $this
      ->assertTag($matcher, $this->html);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertTag
   */
  public function testAssertTagAttributesTrueB() {
    $matcher = array(
      'tag' => 'div',
      'attributes' => array(
        'id' => 'test_child_id',
      ),
    );
    $this
      ->assertTag($matcher, $this->html);
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertTag
   * @expectedException PHPUnit_Framework_AssertionFailedError
   */
  public function testAssertTagAttributesFalse() {
    $matcher = array(
      'tag' => 'span',
      'attributes' => array(
        'class' => 'test_missing_class',
      ),
    );
    $this
      ->assertTag($matcher, $this->html);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertTag
   */
  public function testAssertTagAttributesRegexpTrueA() {
    $matcher = array(
      'tag' => 'span',
      'attributes' => array(
        'class' => 'regexp:/.+_class/',
      ),
    );
    $this
      ->assertTag($matcher, $this->html);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertTag
   */
  public function testAssertTagAttributesRegexpTrueB() {
    $matcher = array(
      'tag' => 'div',
      'attributes' => array(
        'id' => 'regexp:/.+_child_.+/',
      ),
    );
    $this
      ->assertTag($matcher, $this->html);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertTag
   */
  public function testAssertTagAttributesRegexpModifierTrue() {
    $matcher = array(
      'tag' => 'div',
      'attributes' => array(
        'id' => 'regexp:/.+_CHILD_.+/i',
      ),
    );
    $this
      ->assertTag($matcher, $this->html);
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertTag
   * @expectedException PHPUnit_Framework_AssertionFailedError
   */
  public function testAssertTagAttributesRegexpModifierFalse() {
    $matcher = array(
      'tag' => 'div',
      'attributes' => array(
        'id' => 'regexp:/.+_CHILD_.+/',
      ),
    );
    $this
      ->assertTag($matcher, $this->html);
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertTag
   * @expectedException PHPUnit_Framework_AssertionFailedError
   */
  public function testAssertTagAttributesRegexpFalse() {
    $matcher = array(
      'tag' => 'span',
      'attributes' => array(
        'class' => 'regexp:/.+_missing_.+/',
      ),
    );
    $this
      ->assertTag($matcher, $this->html);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertTag
   */
  public function testAssertTagAttributesMultiPartClassTrueA() {
    $matcher = array(
      'tag' => 'div',
      'id' => 'test_multi_class',
      'attributes' => array(
        'class' => 'multi class',
      ),
    );
    $this
      ->assertTag($matcher, $this->html);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertTag
   */
  public function testAssertTagAttributesMultiPartClassTrueB() {
    $matcher = array(
      'tag' => 'div',
      'id' => 'test_multi_class',
      'attributes' => array(
        'class' => 'multi',
      ),
    );
    $this
      ->assertTag($matcher, $this->html);
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertTag
   * @expectedException PHPUnit_Framework_AssertionFailedError
   */
  public function testAssertTagAttributesMultiPartClassFalse() {
    $matcher = array(
      'tag' => 'div',
      'id' => 'test_multi_class',
      'attributes' => array(
        'class' => 'mul',
      ),
    );
    $this
      ->assertTag($matcher, $this->html);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertTag
   */
  public function testAssertTagParentTrue() {
    $matcher = array(
      'tag' => 'head',
      'parent' => array(
        'tag' => 'html',
      ),
    );
    $this
      ->assertTag($matcher, $this->html);
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertTag
   * @expectedException PHPUnit_Framework_AssertionFailedError
   */
  public function testAssertTagParentFalse() {
    $matcher = array(
      'tag' => 'head',
      'parent' => array(
        'tag' => 'div',
      ),
    );
    $this
      ->assertTag($matcher, $this->html);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertTag
   */
  public function testAssertTagMultiplePossibleChildren() {
    $matcher = array(
      'tag' => 'li',
      'parent' => array(
        'tag' => 'ul',
        'id' => 'another_ul',
      ),
    );
    $this
      ->assertTag($matcher, $this->html);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertTag
   */
  public function testAssertTagChildTrue() {
    $matcher = array(
      'tag' => 'html',
      'child' => array(
        'tag' => 'head',
      ),
    );
    $this
      ->assertTag($matcher, $this->html);
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertTag
   * @expectedException PHPUnit_Framework_AssertionFailedError
   */
  public function testAssertTagChildFalse() {
    $matcher = array(
      'tag' => 'html',
      'child' => array(
        'tag' => 'div',
      ),
    );
    $this
      ->assertTag($matcher, $this->html);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertTag
   */
  public function testAssertTagAncestorTrue() {
    $matcher = array(
      'tag' => 'div',
      'ancestor' => array(
        'tag' => 'html',
      ),
    );
    $this
      ->assertTag($matcher, $this->html);
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertTag
   * @expectedException PHPUnit_Framework_AssertionFailedError
   */
  public function testAssertTagAncestorFalse() {
    $matcher = array(
      'tag' => 'html',
      'ancestor' => array(
        'tag' => 'div',
      ),
    );
    $this
      ->assertTag($matcher, $this->html);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertTag
   */
  public function testAssertTagDescendantTrue() {
    $matcher = array(
      'tag' => 'html',
      'descendant' => array(
        'tag' => 'div',
      ),
    );
    $this
      ->assertTag($matcher, $this->html);
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertTag
   * @expectedException PHPUnit_Framework_AssertionFailedError
   */
  public function testAssertTagDescendantFalse() {
    $matcher = array(
      'tag' => 'div',
      'descendant' => array(
        'tag' => 'html',
      ),
    );
    $this
      ->assertTag($matcher, $this->html);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertTag
   */
  public function testAssertTagChildrenCountTrue() {
    $matcher = array(
      'tag' => 'ul',
      'children' => array(
        'count' => 3,
      ),
    );
    $this
      ->assertTag($matcher, $this->html);
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertTag
   * @expectedException PHPUnit_Framework_AssertionFailedError
   */
  public function testAssertTagChildrenCountFalse() {
    $matcher = array(
      'tag' => 'ul',
      'children' => array(
        'count' => 5,
      ),
    );
    $this
      ->assertTag($matcher, $this->html);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertTag
   */
  public function testAssertTagChildrenLessThanTrue() {
    $matcher = array(
      'tag' => 'ul',
      'children' => array(
        'less_than' => 10,
      ),
    );
    $this
      ->assertTag($matcher, $this->html);
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertTag
   * @expectedException PHPUnit_Framework_AssertionFailedError
   */
  public function testAssertTagChildrenLessThanFalse() {
    $matcher = array(
      'tag' => 'ul',
      'children' => array(
        'less_than' => 2,
      ),
    );
    $this
      ->assertTag($matcher, $this->html);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertTag
   */
  public function testAssertTagChildrenGreaterThanTrue() {
    $matcher = array(
      'tag' => 'ul',
      'children' => array(
        'greater_than' => 2,
      ),
    );
    $this
      ->assertTag($matcher, $this->html);
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertTag
   * @expectedException PHPUnit_Framework_AssertionFailedError
   */
  public function testAssertTagChildrenGreaterThanFalse() {
    $matcher = array(
      'tag' => 'ul',
      'children' => array(
        'greater_than' => 10,
      ),
    );
    $this
      ->assertTag($matcher, $this->html);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertTag
   */
  public function testAssertTagChildrenOnlyTrue() {
    $matcher = array(
      'tag' => 'ul',
      'children' => array(
        'only' => array(
          'tag' => 'li',
        ),
      ),
    );
    $this
      ->assertTag($matcher, $this->html);
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertTag
   * @expectedException PHPUnit_Framework_AssertionFailedError
   */
  public function testAssertTagChildrenOnlyFalse() {
    $matcher = array(
      'tag' => 'ul',
      'children' => array(
        'only' => array(
          'tag' => 'div',
        ),
      ),
    );
    $this
      ->assertTag($matcher, $this->html);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertTag
   */
  public function testAssertTagTypeIdTrueA() {
    $matcher = array(
      'tag' => 'ul',
      'id' => 'my_ul',
    );
    $this
      ->assertTag($matcher, $this->html);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertTag
   */
  public function testAssertTagTypeIdTrueB() {
    $matcher = array(
      'id' => 'my_ul',
      'tag' => 'ul',
    );
    $this
      ->assertTag($matcher, $this->html);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertTag
   */
  public function testAssertTagTypeIdTrueC() {
    $matcher = array(
      'tag' => 'input',
      'id' => 'input_test_id',
    );
    $this
      ->assertTag($matcher, $this->html);
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertTag
   * @expectedException PHPUnit_Framework_AssertionFailedError
   */
  public function testAssertTagTypeIdFalse() {
    $matcher = array(
      'tag' => 'div',
      'id' => 'my_ul',
    );
    $this
      ->assertTag($matcher, $this->html);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertTag
   */
  public function testAssertTagContentAttributes() {
    $matcher = array(
      'tag' => 'div',
      'content' => 'Test Id Text',
      'attributes' => array(
        'id' => 'test_id',
        'class' => 'my_test_class',
      ),
    );
    $this
      ->assertTag($matcher, $this->html);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertTag
   */
  public function testAssertParentContentAttributes() {
    $matcher = array(
      'tag' => 'div',
      'content' => 'Test Id Text',
      'attributes' => array(
        'id' => 'test_id',
        'class' => 'my_test_class',
      ),
      'parent' => array(
        'tag' => 'body',
      ),
    );
    $this
      ->assertTag($matcher, $this->html);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertTag
   */
  public function testAssertChildContentAttributes() {
    $matcher = array(
      'tag' => 'div',
      'content' => 'Test Id Text',
      'attributes' => array(
        'id' => 'test_id',
        'class' => 'my_test_class',
      ),
      'child' => array(
        'tag' => 'div',
        'attributes' => array(
          'id' => 'test_child_id',
        ),
      ),
    );
    $this
      ->assertTag($matcher, $this->html);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertTag
   */
  public function testAssertChildSubChildren() {
    $matcher = array(
      'id' => 'test_id',
      'child' => array(
        'id' => 'test_child_id',
        'child' => array(
          'id' => 'test_subchild_id',
        ),
      ),
    );
    $this
      ->assertTag($matcher, $this->html);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertTag
   */
  public function testAssertAncestorContentAttributes() {
    $matcher = array(
      'id' => 'test_subchild_id',
      'content' => 'My Subchild',
      'attributes' => array(
        'id' => 'test_subchild_id',
      ),
      'ancestor' => array(
        'tag' => 'div',
        'attributes' => array(
          'id' => 'test_id',
        ),
      ),
    );
    $this
      ->assertTag($matcher, $this->html);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertTag
   */
  public function testAssertDescendantContentAttributes() {
    $matcher = array(
      'id' => 'test_id',
      'content' => 'Test Id Text',
      'attributes' => array(
        'id' => 'test_id',
      ),
      'descendant' => array(
        'tag' => 'span',
        'attributes' => array(
          'id' => 'test_subchild_id',
        ),
      ),
    );
    $this
      ->assertTag($matcher, $this->html);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertTag
   */
  public function testAssertChildrenContentAttributes() {
    $matcher = array(
      'id' => 'test_children',
      'content' => 'My Children',
      'attributes' => array(
        'class' => 'children',
      ),
      'children' => array(
        'less_than' => '25',
        'greater_than' => '2',
        'only' => array(
          'tag' => 'div',
          'attributes' => array(
            'class' => 'my_child',
          ),
        ),
      ),
    );
    $this
      ->assertTag($matcher, $this->html);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertNotTag
   */
  public function testAssertNotTagTypeIdFalse() {
    $matcher = array(
      'tag' => 'div',
      'id' => 'my_ul',
    );
    $this
      ->assertNotTag($matcher, $this->html);
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertNotTag
   * @expectedException PHPUnit_Framework_AssertionFailedError
   */
  public function testAssertNotTagContentAttributes() {
    $matcher = array(
      'tag' => 'div',
      'content' => 'Test Id Text',
      'attributes' => array(
        'id' => 'test_id',
        'class' => 'my_test_class',
      ),
    );
    $this
      ->assertNotTag($matcher, $this->html);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertSelectCount
   */
  public function testAssertSelectCountPresentTrue() {
    $selector = 'div#test_id';
    $count = TRUE;
    $this
      ->assertSelectCount($selector, $count, $this->html);
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertSelectCount
   * @expectedException PHPUnit_Framework_AssertionFailedError
   */
  public function testAssertSelectCountPresentFalse() {
    $selector = 'div#non_existent';
    $count = TRUE;
    $this
      ->assertSelectCount($selector, $count, $this->html);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertSelectCount
   */
  public function testAssertSelectCountNotPresentTrue() {
    $selector = 'div#non_existent';
    $count = FALSE;
    $this
      ->assertSelectCount($selector, $count, $this->html);
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertSelectCount
   * @expectedException PHPUnit_Framework_AssertionFailedError
   */
  public function testAssertSelectNotPresentFalse() {
    $selector = 'div#test_id';
    $count = FALSE;
    $this
      ->assertSelectCount($selector, $count, $this->html);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertSelectCount
   */
  public function testAssertSelectCountChildTrue() {
    $selector = '#my_ul > li';
    $count = 3;
    $this
      ->assertSelectCount($selector, $count, $this->html);
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertSelectCount
   * @expectedException PHPUnit_Framework_AssertionFailedError
   */
  public function testAssertSelectCountChildFalse() {
    $selector = '#my_ul > li';
    $count = 4;
    $this
      ->assertSelectCount($selector, $count, $this->html);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertSelectCount
   */
  public function testAssertSelectCountDescendantTrue() {
    $selector = '#my_ul li';
    $count = 3;
    $this
      ->assertSelectCount($selector, $count, $this->html);
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertSelectCount
   * @expectedException PHPUnit_Framework_AssertionFailedError
   */
  public function testAssertSelectCountDescendantFalse() {
    $selector = '#my_ul li';
    $count = 4;
    $this
      ->assertSelectCount($selector, $count, $this->html);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertSelectCount
   */
  public function testAssertSelectCountGreaterThanTrue() {
    $selector = '#my_ul > li';
    $range = array(
      '>' => 2,
    );
    $this
      ->assertSelectCount($selector, $range, $this->html);
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertSelectCount
   * @expectedException PHPUnit_Framework_AssertionFailedError
   */
  public function testAssertSelectCountGreaterThanFalse() {
    $selector = '#my_ul > li';
    $range = array(
      '>' => 3,
    );
    $this
      ->assertSelectCount($selector, $range, $this->html);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertSelectCount
   */
  public function testAssertSelectCountGreaterThanEqualToTrue() {
    $selector = '#my_ul > li';
    $range = array(
      '>=' => 3,
    );
    $this
      ->assertSelectCount($selector, $range, $this->html);
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertSelectCount
   * @expectedException PHPUnit_Framework_AssertionFailedError
   */
  public function testAssertSelectCountGreaterThanEqualToFalse() {
    $selector = '#my_ul > li';
    $range = array(
      '>=' => 4,
    );
    $this
      ->assertSelectCount($selector, $range, $this->html);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertSelectCount
   */
  public function testAssertSelectCountLessThanTrue() {
    $selector = '#my_ul > li';
    $range = array(
      '<' => 4,
    );
    $this
      ->assertSelectCount($selector, $range, $this->html);
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertSelectCount
   * @expectedException PHPUnit_Framework_AssertionFailedError
   */
  public function testAssertSelectCountLessThanFalse() {
    $selector = '#my_ul > li';
    $range = array(
      '<' => 3,
    );
    $this
      ->assertSelectCount($selector, $range, $this->html);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertSelectCount
   */
  public function testAssertSelectCountLessThanEqualToTrue() {
    $selector = '#my_ul > li';
    $range = array(
      '<=' => 3,
    );
    $this
      ->assertSelectCount($selector, $range, $this->html);
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertSelectCount
   * @expectedException PHPUnit_Framework_AssertionFailedError
   */
  public function testAssertSelectCountLessThanEqualToFalse() {
    $selector = '#my_ul > li';
    $range = array(
      '<=' => 2,
    );
    $this
      ->assertSelectCount($selector, $range, $this->html);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertSelectCount
   */
  public function testAssertSelectCountRangeTrue() {
    $selector = '#my_ul > li';
    $range = array(
      '>' => 2,
      '<' => 4,
    );
    $this
      ->assertSelectCount($selector, $range, $this->html);
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertSelectCount
   * @expectedException PHPUnit_Framework_AssertionFailedError
   */
  public function testAssertSelectCountRangeFalse() {
    $selector = '#my_ul > li';
    $range = array(
      '>' => 1,
      '<' => 3,
    );
    $this
      ->assertSelectCount($selector, $range, $this->html);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertSelectEquals
   */
  public function testAssertSelectEqualsContentPresentTrue() {
    $selector = 'span.test_class';
    $content = 'Test Class Text';
    $this
      ->assertSelectEquals($selector, $content, TRUE, $this->html);
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertSelectEquals
   * @expectedException PHPUnit_Framework_AssertionFailedError
   */
  public function testAssertSelectEqualsContentPresentFalse() {
    $selector = 'span.test_class';
    $content = 'Test Nonexistent';
    $this
      ->assertSelectEquals($selector, $content, TRUE, $this->html);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertSelectEquals
   */
  public function testAssertSelectEqualsContentNotPresentTrue() {
    $selector = 'span.test_class';
    $content = 'Test Nonexistent';
    $this
      ->assertSelectEquals($selector, $content, FALSE, $this->html);
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertSelectEquals
   * @expectedException PHPUnit_Framework_AssertionFailedError
   */
  public function testAssertSelectEqualsContentNotPresentFalse() {
    $selector = 'span.test_class';
    $content = 'Test Class Text';
    $this
      ->assertSelectEquals($selector, $content, FALSE, $this->html);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertSelectRegExp
   */
  public function testAssertSelectRegExpContentPresentTrue() {
    $selector = 'span.test_class';
    $regexp = '/Test.*Text/';
    $this
      ->assertSelectRegExp($selector, $regexp, TRUE, $this->html);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertSelectRegExp
   */
  public function testAssertSelectRegExpContentPresentFalse() {
    $selector = 'span.test_class';
    $regexp = '/Nonexistant/';
    $this
      ->assertSelectRegExp($selector, $regexp, FALSE, $this->html);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertFileEquals
   */
  public function testAssertFileEquals() {
    $this
      ->assertFileEquals($this->filesDirectory . 'foo.xml', $this->filesDirectory . 'foo.xml');
    try {
      $this
        ->assertFileEquals($this->filesDirectory . 'foo.xml', $this->filesDirectory . 'bar.xml');
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertFileNotEquals
   */
  public function testAssertFileNotEquals() {
    $this
      ->assertFileNotEquals($this->filesDirectory . 'foo.xml', $this->filesDirectory . 'bar.xml');
    try {
      $this
        ->assertFileNotEquals($this->filesDirectory . 'foo.xml', $this->filesDirectory . 'foo.xml');
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertStringEqualsFile
   */
  public function testAssertStringEqualsFile() {
    $this
      ->assertStringEqualsFile($this->filesDirectory . 'foo.xml', file_get_contents($this->filesDirectory . 'foo.xml'));
    try {
      $this
        ->assertStringEqualsFile($this->filesDirectory . 'foo.xml', file_get_contents($this->filesDirectory . 'bar.xml'));
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertStringNotEqualsFile
   */
  public function testAssertStringNotEqualsFile() {
    $this
      ->assertStringNotEqualsFile($this->filesDirectory . 'foo.xml', file_get_contents($this->filesDirectory . 'bar.xml'));
    try {
      $this
        ->assertStringNotEqualsFile($this->filesDirectory . 'foo.xml', file_get_contents($this->filesDirectory . 'foo.xml'));
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertStringStartsWith
   * @expectedException PHPUnit_Framework_Exception
   */
  public function testAssertStringStartsWithThrowsException() {
    $this
      ->assertStringStartsWith(NULL, NULL);
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertStringStartsWith
   * @expectedException PHPUnit_Framework_Exception
   */
  public function testAssertStringStartsWithThrowsException2() {
    $this
      ->assertStringStartsWith('', NULL);
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertStringStartsNotWith
   * @expectedException PHPUnit_Framework_Exception
   */
  public function testAssertStringStartsNotWithThrowsException() {
    $this
      ->assertStringStartsNotWith(NULL, NULL);
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertStringStartsNotWith
   * @expectedException PHPUnit_Framework_Exception
   */
  public function testAssertStringStartsNotWithThrowsException2() {
    $this
      ->assertStringStartsNotWith('', NULL);
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertStringEndsWith
   * @expectedException PHPUnit_Framework_Exception
   */
  public function testAssertStringEndsWithThrowsException() {
    $this
      ->assertStringEndsWith(NULL, NULL);
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertStringEndsWith
   * @expectedException PHPUnit_Framework_Exception
   */
  public function testAssertStringEndsWithThrowsException2() {
    $this
      ->assertStringEndsWith('', NULL);
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertStringEndsNotWith
   * @expectedException PHPUnit_Framework_Exception
   */
  public function testAssertStringEndsNotWithThrowsException() {
    $this
      ->assertStringEndsNotWith(NULL, NULL);
  }

  /**
   * @covers            PHPUnit_Framework_Assert::assertStringEndsNotWith
   * @expectedException PHPUnit_Framework_Exception
   */
  public function testAssertStringEndsNotWithThrowsException2() {
    $this
      ->assertStringEndsNotWith('', NULL);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertStringStartsWith
   */
  public function testAssertStringStartsWith() {
    $this
      ->assertStringStartsWith('prefix', 'prefixfoo');
    try {
      $this
        ->assertStringStartsWith('prefix', 'foo');
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertStringStartsNotWith
   */
  public function testAssertStringStartsNotWith() {
    $this
      ->assertStringStartsNotWith('prefix', 'foo');
    try {
      $this
        ->assertStringStartsNotWith('prefix', 'prefixfoo');
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertStringEndsWith
   */
  public function testAssertStringEndsWith() {
    $this
      ->assertStringEndsWith('suffix', 'foosuffix');
    try {
      $this
        ->assertStringEndsWith('suffix', 'foo');
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertStringEndsNotWith
   */
  public function testAssertStringEndsNotWith() {
    $this
      ->assertStringEndsNotWith('suffix', 'foo');
    try {
      $this
        ->assertStringEndsNotWith('suffix', 'foosuffix');
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertStringMatchesFormat
   */
  public function testAssertStringMatchesFormat() {
    $this
      ->assertStringMatchesFormat('*%s*', '***');
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertStringMatchesFormat
   * @expectedException PHPUnit_Framework_AssertionFailedError
   */
  public function testAssertStringMatchesFormatFailure() {
    $this
      ->assertStringMatchesFormat('*%s*', '**');
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertStringNotMatchesFormat
   */
  public function testAssertStringNotMatchesFormat() {
    $this
      ->assertStringNotMatchesFormat('*%s*', '**');
    try {
      $this
        ->assertStringMatchesFormat('*%s*', '**');
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertEmpty
   */
  public function testAssertEmpty() {
    $this
      ->assertEmpty(array());
    try {
      $this
        ->assertEmpty(array(
        'foo',
      ));
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertNotEmpty
   */
  public function testAssertNotEmpty() {
    $this
      ->assertNotEmpty(array(
      'foo',
    ));
    try {
      $this
        ->assertNotEmpty(array());
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertAttributeEmpty
   */
  public function testAssertAttributeEmpty() {
    $o = new StdClass();
    $o->a = array();
    $this
      ->assertAttributeEmpty('a', $o);
    try {
      $o->a = array(
        'b',
      );
      $this
        ->assertAttributeEmpty('a', $o);
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertAttributeNotEmpty
   */
  public function testAssertAttributeNotEmpty() {
    $o = new StdClass();
    $o->a = array(
      'b',
    );
    $this
      ->assertAttributeNotEmpty('a', $o);
    try {
      $o->a = array();
      $this
        ->assertAttributeNotEmpty('a', $o);
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::markTestIncomplete
   */
  public function testMarkTestIncomplete() {
    try {
      $this
        ->markTestIncomplete('incomplete');
    } catch (PHPUnit_Framework_IncompleteTestError $e) {
      $this
        ->assertEquals('incomplete', $e
        ->getMessage());
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::markTestSkipped
   */
  public function testMarkTestSkipped() {
    try {
      $this
        ->markTestSkipped('skipped');
    } catch (PHPUnit_Framework_SkippedTestError $e) {
      $this
        ->assertEquals('skipped', $e
        ->getMessage());
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertCount
   */
  public function testAssertCount() {
    $this
      ->assertCount(2, array(
      1,
      2,
    ));
    try {
      $this
        ->assertCount(2, array(
        1,
        2,
        3,
      ));
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertCount
   */
  public function testAssertCountThrowsExceptionIfExpectedCountIsNoInteger() {
    try {
      $this
        ->assertCount('a', array());
    } catch (PHPUnit_Framework_Exception $e) {
      $this
        ->assertEquals('Argument #1 of PHPUnit_Framework_Assert::assertCount() must be a integer', $e
        ->getMessage());
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertCount
   */
  public function testAssertCountThrowsExceptionIfElementIsNotCountable() {
    try {
      $this
        ->assertCount(2, '');
    } catch (PHPUnit_Framework_Exception $e) {
      $this
        ->assertEquals('Argument #2 of PHPUnit_Framework_Assert::assertCount() must be a countable', $e
        ->getMessage());
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertSameSize
   */
  public function testAssertSameSize() {
    $this
      ->assertSameSize(array(
      1,
      2,
    ), array(
      3,
      4,
    ));
    try {
      $this
        ->assertSameSize(array(
        1,
        2,
      ), array(
        1,
        2,
        3,
      ));
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertSameSize
   */
  public function testAssertSameSizeThrowsExceptionIfExpectedIsNotCoutable() {
    try {
      $this
        ->assertSameSize('a', array());
    } catch (PHPUnit_Framework_Exception $e) {
      $this
        ->assertEquals('Argument #1 of PHPUnit_Framework_Assert::assertSameSize() must be a countable', $e
        ->getMessage());
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertSameSize
   */
  public function testAssertSameSizeThrowsExceptionIfActualIsNotCountable() {
    try {
      $this
        ->assertSameSize(array(), '');
    } catch (PHPUnit_Framework_Exception $e) {
      $this
        ->assertEquals('Argument #2 of PHPUnit_Framework_Assert::assertSameSize() must be a countable', $e
        ->getMessage());
      return;
    }
    $this
      ->fail();
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertJsonStringEqualsJsonString
   */
  public function testAssertJsonStringEqualsJsonString() {
    $expected = '{"Mascott" : "Tux"}';
    $actual = '{"Mascott" : "Tux"}';
    $message = 'Given Json strings do not match';
    $this
      ->assertJsonStringEqualsJsonString($expected, $actual, $message);
  }

  /**
   * @dataProvider validInvalidJsonDataprovider
   * @covers PHPUnit_Framework_Assert::assertJsonStringEqualsJsonString
   */
  public function testAssertJsonStringEqualsJsonStringErrorRaised($expected, $actual) {
    try {
      $this
        ->assertJsonStringEqualsJsonString($expected, $actual);
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail('Expected exception not found');
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertJsonStringNotEqualsJsonString
   */
  public function testAssertJsonStringNotEqualsJsonString() {
    $expected = '{"Mascott" : "Beastie"}';
    $actual = '{"Mascott" : "Tux"}';
    $message = 'Given Json strings do match';
    $this
      ->assertJsonStringNotEqualsJsonString($expected, $actual, $message);
  }

  /**
   * @dataProvider validInvalidJsonDataprovider
   * @covers PHPUnit_Framework_Assert::assertJsonStringNotEqualsJsonString
   */
  public function testAssertJsonStringNotEqualsJsonStringErrorRaised($expected, $actual) {
    try {
      $this
        ->assertJsonStringNotEqualsJsonString($expected, $actual);
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
      return;
    }
    $this
      ->fail('Expected exception not found');
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertJsonStringEqualsJsonFile
   */
  public function testAssertJsonStringEqualsJsonFile() {
    $file = __DIR__ . '/../_files/JsonData/simpleObject.js';
    $actual = json_encode(array(
      "Mascott" => "Tux",
    ));
    $message = '';
    $this
      ->assertJsonStringEqualsJsonFile($file, $actual, $message);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertJsonStringEqualsJsonFile
   */
  public function testAssertJsonStringEqualsJsonFileExpectingExpectationFailedException() {
    $file = __DIR__ . '/../_files/JsonData/simpleObject.js';
    $actual = json_encode(array(
      "Mascott" => "Beastie",
    ));
    $message = '';
    try {
      $this
        ->assertJsonStringEqualsJsonFile($file, $actual, $message);
    } catch (PHPUnit_Framework_ExpectationFailedException $e) {
      $this
        ->assertEquals('Failed asserting that \'{"Mascott":"Beastie"}\' matches JSON string "{"Mascott":"Tux"}".', $e
        ->getMessage());
      return;
    }
    $this
      ->fail('Expected Exception not thrown.');
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertJsonStringEqualsJsonFile
   */
  public function testAssertJsonStringEqualsJsonFileExpectingException() {
    $file = __DIR__ . '/../_files/JsonData/simpleObject.js';
    try {
      $this
        ->assertJsonStringEqualsJsonFile($file, NULL);
    } catch (PHPUnit_Framework_Exception $e) {
      return;
    }
    $this
      ->fail('Expected Exception not thrown.');
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertJsonStringNotEqualsJsonFile
   */
  public function testAssertJsonStringNotEqualsJsonFile() {
    $file = __DIR__ . '/../_files/JsonData/simpleObject.js';
    $actual = json_encode(array(
      "Mascott" => "Beastie",
    ));
    $message = '';
    $this
      ->assertJsonStringNotEqualsJsonFile($file, $actual, $message);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertJsonStringNotEqualsJsonFile
   */
  public function testAssertJsonStringNotEqualsJsonFileExpectingException() {
    $file = __DIR__ . '/../_files/JsonData/simpleObject.js';
    try {
      $this
        ->assertJsonStringNotEqualsJsonFile($file, NULL);
    } catch (PHPUnit_Framework_Exception $e) {
      return;
    }
    $this
      ->fail('Expected exception not found.');
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertJsonFileNotEqualsJsonFile
   */
  public function testAssertJsonFileNotEqualsJsonFile() {
    $fileExpected = __DIR__ . '/../_files/JsonData/simpleObject.js';
    $fileActual = __DIR__ . '/../_files/JsonData/arrayObject.js';
    $message = '';
    $this
      ->assertJsonFileNotEqualsJsonFile($fileExpected, $fileActual, $message);
  }

  /**
   * @covers PHPUnit_Framework_Assert::assertJsonFileEqualsJsonFile
   */
  public function testAssertJsonFileEqualsJsonFile() {
    $file = __DIR__ . '/../_files/JsonData/simpleObject.js';
    $message = '';
    $this
      ->assertJsonFileEqualsJsonFile($file, $file, $message);
  }
  public static function validInvalidJsonDataprovider() {
    return array(
      'error syntax in expected JSON' => array(
        '{"Mascott"::}',
        '{"Mascott" : "Tux"}',
      ),
      'error UTF-8 in actual JSON' => array(
        '{"Mascott" : "Tux"}',
        '{"Mascott" : :}',
      ),
    );
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Framework_AssertTest::$filesDirectory protected property
Framework_AssertTest::createDOMDocument protected function
Framework_AssertTest::equalProvider public function
Framework_AssertTest::equalValues protected function
Framework_AssertTest::notEqualProvider public function
Framework_AssertTest::notEqualValues protected function
Framework_AssertTest::notSameProvider public function
Framework_AssertTest::sameProvider public function
Framework_AssertTest::sameValues protected function
Framework_AssertTest::setUp protected function Sets up the fixture, for example, open a network connection. This method is called before a test is executed. Overrides PHPUnit_Framework_TestCase::setUp
Framework_AssertTest::testAssertAncestorContentAttributes public function @covers PHPUnit_Framework_Assert::assertTag
Framework_AssertTest::testAssertArrayContainsObject public function @covers PHPUnit_Framework_Assert::assertContains
Framework_AssertTest::testAssertArrayContainsOnlyIntegers public function @covers PHPUnit_Framework_Assert::assertContainsOnly
Framework_AssertTest::testAssertArrayContainsOnlyStdClass public function @covers PHPUnit_Framework_Assert::assertContainsOnly
Framework_AssertTest::testAssertArrayContainsString public function @covers PHPUnit_Framework_Assert::assertContains
Framework_AssertTest::testAssertArrayHasIntegerKey public function @covers PHPUnit_Framework_Assert::assertArrayHasKey
Framework_AssertTest::testAssertArrayHasKeyAcceptsArrayAccessValue public function @covers PHPUnit_Framework_Assert::assertArrayHasKey
Framework_AssertTest::testAssertArrayHasKeyProperlyFailsWithArrayAccessValue public function @covers PHPUnit_Framework_Assert::assertArrayHasKey @expectedException PHPUnit_Framework_AssertionFailedError
Framework_AssertTest::testAssertArrayHasKeyThrowsException public function @covers PHPUnit_Framework_Assert::assertArrayHasKey @expectedException PHPUnit_Framework_Exception
Framework_AssertTest::testAssertArrayHasStringKey public function @covers PHPUnit_Framework_Assert::assertArrayHasKey
Framework_AssertTest::testAssertArrayNotContainsObject public function @covers PHPUnit_Framework_Assert::assertNotContains
Framework_AssertTest::testAssertArrayNotContainsOnlyIntegers public function @covers PHPUnit_Framework_Assert::assertNotContainsOnly
Framework_AssertTest::testAssertArrayNotContainsOnlyStdClass public function @covers PHPUnit_Framework_Assert::assertNotContainsOnly
Framework_AssertTest::testAssertArrayNotContainsString public function @covers PHPUnit_Framework_Assert::assertNotContains
Framework_AssertTest::testAssertArrayNotHasIntegerKey public function @covers PHPUnit_Framework_Assert::assertArrayNotHasKey
Framework_AssertTest::testAssertArrayNotHasKeyAcceptsArrayAccessValue public function @covers PHPUnit_Framework_Assert::assertArrayNotHasKey
Framework_AssertTest::testAssertArrayNotHasKeyPropertlyFailsWithArrayAccessValue public function @covers PHPUnit_Framework_Assert::assertArrayNotHasKey @expectedException PHPUnit_Framework_AssertionFailedError
Framework_AssertTest::testAssertArrayNotHasKeyThrowsException public function @covers PHPUnit_Framework_Assert::assertArrayNotHasKey @expectedException PHPUnit_Framework_Exception
Framework_AssertTest::testAssertArrayNotHasStringKey public function @covers PHPUnit_Framework_Assert::assertArrayNotHasKey
Framework_AssertTest::testAssertAttributeEmpty public function @covers PHPUnit_Framework_Assert::assertAttributeEmpty
Framework_AssertTest::testAssertAttributeNotEmpty public function @covers PHPUnit_Framework_Assert::assertAttributeNotEmpty
Framework_AssertTest::testAssertChildContentAttributes public function @covers PHPUnit_Framework_Assert::assertTag
Framework_AssertTest::testAssertChildrenContentAttributes public function @covers PHPUnit_Framework_Assert::assertTag
Framework_AssertTest::testAssertChildSubChildren public function @covers PHPUnit_Framework_Assert::assertTag
Framework_AssertTest::testAssertClassHasAttributeThrowsException public function @covers PHPUnit_Framework_Assert::assertClassHasAttribute @expectedException PHPUnit_Framework_Exception
Framework_AssertTest::testAssertClassHasAttributeThrowsException2 public function @covers PHPUnit_Framework_Assert::assertClassHasAttribute @expectedException PHPUnit_Framework_Exception
Framework_AssertTest::testAssertClassHasStaticAttributeThrowsException public function @covers PHPUnit_Framework_Assert::assertClassHasStaticAttribute @expectedException PHPUnit_Framework_Exception
Framework_AssertTest::testAssertClassHasStaticAttributeThrowsException2 public function @covers PHPUnit_Framework_Assert::assertClassHasStaticAttribute @expectedException PHPUnit_Framework_Exception
Framework_AssertTest::testAssertClassNotHasAttributeThrowsException public function @covers PHPUnit_Framework_Assert::assertClassNotHasAttribute @expectedException PHPUnit_Framework_Exception
Framework_AssertTest::testAssertClassNotHasAttributeThrowsException2 public function @covers PHPUnit_Framework_Assert::assertClassNotHasAttribute @expectedException PHPUnit_Framework_Exception
Framework_AssertTest::testAssertClassNotHasStaticAttributeThrowsException public function @covers PHPUnit_Framework_Assert::assertClassNotHasStaticAttribute @expectedException PHPUnit_Framework_Exception
Framework_AssertTest::testAssertClassNotHasStaticAttributeThrowsException2 public function @covers PHPUnit_Framework_Assert::assertClassNotHasStaticAttribute @expectedException PHPUnit_Framework_Exception
Framework_AssertTest::testAssertContainsOnlyInstancesOf public function @covers PHPUnit_Framework_Assert::assertContainsOnlyInstancesOf
Framework_AssertTest::testAssertContainsOnlyInstancesOfThrowsException public function @covers PHPUnit_Framework_Assert::assertContainsOnlyInstancesOf @expectedException PHPUnit_Framework_Exception
Framework_AssertTest::testAssertContainsOnlyThrowsException public function @covers PHPUnit_Framework_Assert::assertContainsOnly @expectedException PHPUnit_Framework_Exception
Framework_AssertTest::testAssertContainsThrowsException public function @covers PHPUnit_Framework_Assert::assertContains @expectedException PHPUnit_Framework_Exception
Framework_AssertTest::testAssertCount public function @covers PHPUnit_Framework_Assert::assertCount
Framework_AssertTest::testAssertCountThrowsExceptionIfElementIsNotCountable public function @covers PHPUnit_Framework_Assert::assertCount
Framework_AssertTest::testAssertCountThrowsExceptionIfExpectedCountIsNoInteger public function @covers PHPUnit_Framework_Assert::assertCount
Framework_AssertTest::testAssertDescendantContentAttributes public function @covers PHPUnit_Framework_Assert::assertTag
Framework_AssertTest::testAssertEmpty public function @covers PHPUnit_Framework_Assert::assertEmpty
Framework_AssertTest::testAssertEqualsFails public function @covers PHPUnit_Framework_Assert::assertEquals @dataProvider notEqualProvider
Framework_AssertTest::testAssertEqualsSucceeds public function @covers PHPUnit_Framework_Assert::assertEquals @dataProvider equalProvider
Framework_AssertTest::testAssertFalse public function @covers PHPUnit_Framework_Assert::assertFalse
Framework_AssertTest::testAssertFileEquals public function @covers PHPUnit_Framework_Assert::assertFileEquals
Framework_AssertTest::testAssertFileExists public function @covers PHPUnit_Framework_Assert::assertFileExists
Framework_AssertTest::testAssertFileExistsThrowsException public function @covers PHPUnit_Framework_Assert::assertFileExists @expectedException PHPUnit_Framework_Exception
Framework_AssertTest::testAssertFileNotEquals public function @covers PHPUnit_Framework_Assert::assertFileNotEquals
Framework_AssertTest::testAssertFileNotExists public function @covers PHPUnit_Framework_Assert::assertFileNotExists
Framework_AssertTest::testAssertFileNotExistsThrowsException public function @covers PHPUnit_Framework_Assert::assertFileNotExists @expectedException PHPUnit_Framework_Exception
Framework_AssertTest::testAssertIteratorContainsObject public function @covers PHPUnit_Framework_Assert::assertContains
Framework_AssertTest::testAssertIteratorContainsString public function @covers PHPUnit_Framework_Assert::assertContains
Framework_AssertTest::testAssertJsonFileEqualsJsonFile public function @covers PHPUnit_Framework_Assert::assertJsonFileEqualsJsonFile
Framework_AssertTest::testAssertJsonFileNotEqualsJsonFile public function @covers PHPUnit_Framework_Assert::assertJsonFileNotEqualsJsonFile
Framework_AssertTest::testAssertJsonStringEqualsJsonFile public function @covers PHPUnit_Framework_Assert::assertJsonStringEqualsJsonFile
Framework_AssertTest::testAssertJsonStringEqualsJsonFileExpectingException public function @covers PHPUnit_Framework_Assert::assertJsonStringEqualsJsonFile
Framework_AssertTest::testAssertJsonStringEqualsJsonFileExpectingExpectationFailedException public function @covers PHPUnit_Framework_Assert::assertJsonStringEqualsJsonFile
Framework_AssertTest::testAssertJsonStringEqualsJsonString public function @covers PHPUnit_Framework_Assert::assertJsonStringEqualsJsonString
Framework_AssertTest::testAssertJsonStringEqualsJsonStringErrorRaised public function @dataProvider validInvalidJsonDataprovider @covers PHPUnit_Framework_Assert::assertJsonStringEqualsJsonString
Framework_AssertTest::testAssertJsonStringNotEqualsJsonFile public function @covers PHPUnit_Framework_Assert::assertJsonStringNotEqualsJsonFile
Framework_AssertTest::testAssertJsonStringNotEqualsJsonFileExpectingException public function @covers PHPUnit_Framework_Assert::assertJsonStringNotEqualsJsonFile
Framework_AssertTest::testAssertJsonStringNotEqualsJsonString public function @covers PHPUnit_Framework_Assert::assertJsonStringNotEqualsJsonString
Framework_AssertTest::testAssertJsonStringNotEqualsJsonStringErrorRaised public function @dataProvider validInvalidJsonDataprovider @covers PHPUnit_Framework_Assert::assertJsonStringNotEqualsJsonString
Framework_AssertTest::testAssertNotContainsThrowsException public function @covers PHPUnit_Framework_Assert::assertNotContains @expectedException PHPUnit_Framework_Exception
Framework_AssertTest::testAssertNotEmpty public function @covers PHPUnit_Framework_Assert::assertNotEmpty
Framework_AssertTest::testAssertNotEqualsFails public function @covers PHPUnit_Framework_Assert::assertNotEquals @dataProvider equalProvider
Framework_AssertTest::testAssertNotEqualsSucceeds public function @covers PHPUnit_Framework_Assert::assertNotEquals @dataProvider notEqualProvider
Framework_AssertTest::testAssertNotNull public function @covers PHPUnit_Framework_Assert::assertNotNull
Framework_AssertTest::testAssertNotRegExp public function @covers PHPUnit_Framework_Assert::assertNotRegExp
Framework_AssertTest::testAssertNotRegExpThrowsException public function @covers PHPUnit_Framework_Assert::assertNotRegExp @expectedException PHPUnit_Framework_Exception
Framework_AssertTest::testAssertNotRegExpThrowsException2 public function @covers PHPUnit_Framework_Assert::assertNotRegExp @expectedException PHPUnit_Framework_Exception
Framework_AssertTest::testAssertNotSame public function @covers PHPUnit_Framework_Assert::assertNotSame
Framework_AssertTest::testAssertNotSame2 public function @covers PHPUnit_Framework_Assert::assertNotSame
Framework_AssertTest::testAssertNotSameFails public function @covers PHPUnit_Framework_Assert::assertNotSame @dataProvider sameProvider
Framework_AssertTest::testAssertNotSameFailsNull public function @covers PHPUnit_Framework_Assert::assertNotSame
Framework_AssertTest::testAssertNotSameSucceeds public function @covers PHPUnit_Framework_Assert::assertNotSame @dataProvider notSameProvider
Framework_AssertTest::testAssertNotTagContentAttributes public function @covers PHPUnit_Framework_Assert::assertNotTag @expectedException PHPUnit_Framework_AssertionFailedError
Framework_AssertTest::testAssertNotTagTypeIdFalse public function @covers PHPUnit_Framework_Assert::assertNotTag
Framework_AssertTest::testAssertNull public function @covers PHPUnit_Framework_Assert::assertNull
Framework_AssertTest::testAssertObjectHasAttribute public function @covers PHPUnit_Framework_Assert::assertObjectHasAttribute
Framework_AssertTest::testAssertObjectHasAttributeThrowsException public function @covers PHPUnit_Framework_Assert::assertObjectHasAttribute @expectedException PHPUnit_Framework_Exception
Framework_AssertTest::testAssertObjectHasAttributeThrowsException2 public function @covers PHPUnit_Framework_Assert::assertObjectHasAttribute @expectedException PHPUnit_Framework_Exception
Framework_AssertTest::testAssertObjectNotHasAttribute public function @covers PHPUnit_Framework_Assert::assertObjectNotHasAttribute
Framework_AssertTest::testAssertObjectNotHasAttributeThrowsException public function @covers PHPUnit_Framework_Assert::assertObjectNotHasAttribute @expectedException PHPUnit_Framework_Exception
Framework_AssertTest::testAssertObjectNotHasAttributeThrowsException2 public function @covers PHPUnit_Framework_Assert::assertObjectNotHasAttribute @expectedException PHPUnit_Framework_Exception
Framework_AssertTest::testAssertParentContentAttributes public function @covers PHPUnit_Framework_Assert::assertTag
Framework_AssertTest::testAssertPrivateAttributeContains public function @covers PHPUnit_Framework_Assert::assertAttributeContains
Framework_AssertTest::testAssertPrivateAttributeEquals public function @covers PHPUnit_Framework_Assert::assertAttributeEquals
Framework_AssertTest::testAssertPrivateAttributeNotContains public function @covers PHPUnit_Framework_Assert::assertAttributeNotContains
Framework_AssertTest::testAssertPrivateAttributeNotEquals public function @covers PHPUnit_Framework_Assert::assertAttributeNotEquals
Framework_AssertTest::testAssertPrivateStaticAttributeEquals public function @covers PHPUnit_Framework_Assert::assertAttributeEquals
Framework_AssertTest::testAssertPrivateStaticAttributeNotEquals public function @covers PHPUnit_Framework_Assert::assertAttributeNotEquals
Framework_AssertTest::testAssertProtectedAttributeContains public function @covers PHPUnit_Framework_Assert::assertAttributeContains
Framework_AssertTest::testAssertProtectedAttributeEquals public function @covers PHPUnit_Framework_Assert::assertAttributeEquals
Framework_AssertTest::testAssertProtectedAttributeNotContains public function @covers PHPUnit_Framework_Assert::assertAttributeNotContains
Framework_AssertTest::testAssertProtectedAttributeNotEquals public function @covers PHPUnit_Framework_Assert::assertAttributeNotEquals
Framework_AssertTest::testAssertProtectedStaticAttributeEquals public function @covers PHPUnit_Framework_Assert::assertAttributeEquals
Framework_AssertTest::testAssertProtectedStaticAttributeNotEquals public function @covers PHPUnit_Framework_Assert::assertAttributeNotEquals
Framework_AssertTest::testAssertPublicAttributeContains public function @covers PHPUnit_Framework_Assert::assertAttributeContains
Framework_AssertTest::testAssertPublicAttributeContainsOnly public function @covers PHPUnit_Framework_Assert::assertAttributeContainsOnly
Framework_AssertTest::testAssertPublicAttributeEquals public function @covers PHPUnit_Framework_Assert::assertAttributeEquals
Framework_AssertTest::testAssertPublicAttributeNotContains public function @covers PHPUnit_Framework_Assert::assertAttributeNotContains
Framework_AssertTest::testAssertPublicAttributeNotContainsOnly public function @covers PHPUnit_Framework_Assert::assertAttributeNotContainsOnly
Framework_AssertTest::testAssertPublicAttributeNotEquals public function @covers PHPUnit_Framework_Assert::assertAttributeNotEquals
Framework_AssertTest::testAssertPublicAttributeNotSame public function @covers PHPUnit_Framework_Assert::assertAttributeNotSame
Framework_AssertTest::testAssertPublicAttributeSame public function @covers PHPUnit_Framework_Assert::assertAttributeSame
Framework_AssertTest::testAssertPublicStaticAttributeEquals public function @covers PHPUnit_Framework_Assert::assertAttributeEquals
Framework_AssertTest::testAssertPublicStaticAttributeNotEquals public function @covers PHPUnit_Framework_Assert::assertAttributeNotEquals
Framework_AssertTest::testAssertRegExp public function @covers PHPUnit_Framework_Assert::assertRegExp
Framework_AssertTest::testAssertRegExpThrowsException public function @covers PHPUnit_Framework_Assert::assertRegExp @expectedException PHPUnit_Framework_Exception
Framework_AssertTest::testAssertRegExpThrowsException2 public function @covers PHPUnit_Framework_Assert::assertRegExp @expectedException PHPUnit_Framework_Exception
Framework_AssertTest::testAssertSame public function @covers PHPUnit_Framework_Assert::assertSame
Framework_AssertTest::testAssertSame2 public function @covers PHPUnit_Framework_Assert::assertSame
Framework_AssertTest::testAssertSameFails public function @covers PHPUnit_Framework_Assert::assertSame @dataProvider notSameProvider
Framework_AssertTest::testAssertSameSize public function @covers PHPUnit_Framework_Assert::assertSameSize
Framework_AssertTest::testAssertSameSizeThrowsExceptionIfActualIsNotCountable public function @covers PHPUnit_Framework_Assert::assertSameSize
Framework_AssertTest::testAssertSameSizeThrowsExceptionIfExpectedIsNotCoutable public function @covers PHPUnit_Framework_Assert::assertSameSize
Framework_AssertTest::testAssertSameSucceeds public function @covers PHPUnit_Framework_Assert::assertSame @dataProvider sameProvider
Framework_AssertTest::testAssertSelectCountChildFalse public function @covers PHPUnit_Framework_Assert::assertSelectCount @expectedException PHPUnit_Framework_AssertionFailedError
Framework_AssertTest::testAssertSelectCountChildTrue public function @covers PHPUnit_Framework_Assert::assertSelectCount
Framework_AssertTest::testAssertSelectCountDescendantFalse public function @covers PHPUnit_Framework_Assert::assertSelectCount @expectedException PHPUnit_Framework_AssertionFailedError
Framework_AssertTest::testAssertSelectCountDescendantTrue public function @covers PHPUnit_Framework_Assert::assertSelectCount
Framework_AssertTest::testAssertSelectCountGreaterThanEqualToFalse public function @covers PHPUnit_Framework_Assert::assertSelectCount @expectedException PHPUnit_Framework_AssertionFailedError
Framework_AssertTest::testAssertSelectCountGreaterThanEqualToTrue public function @covers PHPUnit_Framework_Assert::assertSelectCount
Framework_AssertTest::testAssertSelectCountGreaterThanFalse public function @covers PHPUnit_Framework_Assert::assertSelectCount @expectedException PHPUnit_Framework_AssertionFailedError
Framework_AssertTest::testAssertSelectCountGreaterThanTrue public function @covers PHPUnit_Framework_Assert::assertSelectCount
Framework_AssertTest::testAssertSelectCountLessThanEqualToFalse public function @covers PHPUnit_Framework_Assert::assertSelectCount @expectedException PHPUnit_Framework_AssertionFailedError
Framework_AssertTest::testAssertSelectCountLessThanEqualToTrue public function @covers PHPUnit_Framework_Assert::assertSelectCount
Framework_AssertTest::testAssertSelectCountLessThanFalse public function @covers PHPUnit_Framework_Assert::assertSelectCount @expectedException PHPUnit_Framework_AssertionFailedError
Framework_AssertTest::testAssertSelectCountLessThanTrue public function @covers PHPUnit_Framework_Assert::assertSelectCount
Framework_AssertTest::testAssertSelectCountNotPresentTrue public function @covers PHPUnit_Framework_Assert::assertSelectCount
Framework_AssertTest::testAssertSelectCountPresentFalse public function @covers PHPUnit_Framework_Assert::assertSelectCount @expectedException PHPUnit_Framework_AssertionFailedError
Framework_AssertTest::testAssertSelectCountPresentTrue public function @covers PHPUnit_Framework_Assert::assertSelectCount
Framework_AssertTest::testAssertSelectCountRangeFalse public function @covers PHPUnit_Framework_Assert::assertSelectCount @expectedException PHPUnit_Framework_AssertionFailedError
Framework_AssertTest::testAssertSelectCountRangeTrue public function @covers PHPUnit_Framework_Assert::assertSelectCount
Framework_AssertTest::testAssertSelectEqualsContentNotPresentFalse public function @covers PHPUnit_Framework_Assert::assertSelectEquals @expectedException PHPUnit_Framework_AssertionFailedError
Framework_AssertTest::testAssertSelectEqualsContentNotPresentTrue public function @covers PHPUnit_Framework_Assert::assertSelectEquals
Framework_AssertTest::testAssertSelectEqualsContentPresentFalse public function @covers PHPUnit_Framework_Assert::assertSelectEquals @expectedException PHPUnit_Framework_AssertionFailedError
Framework_AssertTest::testAssertSelectEqualsContentPresentTrue public function @covers PHPUnit_Framework_Assert::assertSelectEquals
Framework_AssertTest::testAssertSelectNotPresentFalse public function @covers PHPUnit_Framework_Assert::assertSelectCount @expectedException PHPUnit_Framework_AssertionFailedError
Framework_AssertTest::testAssertSelectRegExpContentPresentFalse public function @covers PHPUnit_Framework_Assert::assertSelectRegExp
Framework_AssertTest::testAssertSelectRegExpContentPresentTrue public function @covers PHPUnit_Framework_Assert::assertSelectRegExp
Framework_AssertTest::testAssertSplObjectStorageContainsObject public function @covers PHPUnit_Framework_Assert::assertContains
Framework_AssertTest::testAssertSplObjectStorageNotContainsObject public function @covers PHPUnit_Framework_Assert::assertNotContains
Framework_AssertTest::testAssertStringContainsString public function @covers PHPUnit_Framework_Assert::assertContains
Framework_AssertTest::testAssertStringEndsNotWith public function @covers PHPUnit_Framework_Assert::assertStringEndsNotWith
Framework_AssertTest::testAssertStringEndsNotWithThrowsException public function @covers PHPUnit_Framework_Assert::assertStringEndsNotWith @expectedException PHPUnit_Framework_Exception
Framework_AssertTest::testAssertStringEndsNotWithThrowsException2 public function @covers PHPUnit_Framework_Assert::assertStringEndsNotWith @expectedException PHPUnit_Framework_Exception
Framework_AssertTest::testAssertStringEndsWith public function @covers PHPUnit_Framework_Assert::assertStringEndsWith
Framework_AssertTest::testAssertStringEndsWithThrowsException public function @covers PHPUnit_Framework_Assert::assertStringEndsWith @expectedException PHPUnit_Framework_Exception
Framework_AssertTest::testAssertStringEndsWithThrowsException2 public function @covers PHPUnit_Framework_Assert::assertStringEndsWith @expectedException PHPUnit_Framework_Exception
Framework_AssertTest::testAssertStringEqualsFile public function @covers PHPUnit_Framework_Assert::assertStringEqualsFile
Framework_AssertTest::testAssertStringEqualsNumeric public function @covers PHPUnit_Framework_Assert::assertEquals
Framework_AssertTest::testAssertStringEqualsNumeric2 public function @covers PHPUnit_Framework_Assert::assertNotEquals
Framework_AssertTest::testAssertStringMatchesFormat public function @covers PHPUnit_Framework_Assert::assertStringMatchesFormat
Framework_AssertTest::testAssertStringMatchesFormatFailure public function @covers PHPUnit_Framework_Assert::assertStringMatchesFormat @expectedException PHPUnit_Framework_AssertionFailedError
Framework_AssertTest::testAssertStringNotContainsString public function @covers PHPUnit_Framework_Assert::assertNotContains
Framework_AssertTest::testAssertStringNotEqualsFile public function @covers PHPUnit_Framework_Assert::assertStringNotEqualsFile
Framework_AssertTest::testAssertStringNotMatchesFormat public function @covers PHPUnit_Framework_Assert::assertStringNotMatchesFormat
Framework_AssertTest::testAssertStringStartsNotWith public function @covers PHPUnit_Framework_Assert::assertStringStartsNotWith
Framework_AssertTest::testAssertStringStartsNotWithThrowsException public function @covers PHPUnit_Framework_Assert::assertStringStartsNotWith @expectedException PHPUnit_Framework_Exception
Framework_AssertTest::testAssertStringStartsNotWithThrowsException2 public function @covers PHPUnit_Framework_Assert::assertStringStartsNotWith @expectedException PHPUnit_Framework_Exception
Framework_AssertTest::testAssertStringStartsWith public function @covers PHPUnit_Framework_Assert::assertStringStartsWith
Framework_AssertTest::testAssertStringStartsWithThrowsException public function @covers PHPUnit_Framework_Assert::assertStringStartsWith @expectedException PHPUnit_Framework_Exception
Framework_AssertTest::testAssertStringStartsWithThrowsException2 public function @covers PHPUnit_Framework_Assert::assertStringStartsWith @expectedException PHPUnit_Framework_Exception
Framework_AssertTest::testAssertTagAncestorFalse public function @covers PHPUnit_Framework_Assert::assertTag @expectedException PHPUnit_Framework_AssertionFailedError
Framework_AssertTest::testAssertTagAncestorTrue public function @covers PHPUnit_Framework_Assert::assertTag
Framework_AssertTest::testAssertTagAttributesFalse public function @covers PHPUnit_Framework_Assert::assertTag @expectedException PHPUnit_Framework_AssertionFailedError
Framework_AssertTest::testAssertTagAttributesMultiPartClassFalse public function @covers PHPUnit_Framework_Assert::assertTag @expectedException PHPUnit_Framework_AssertionFailedError
Framework_AssertTest::testAssertTagAttributesMultiPartClassTrueA public function @covers PHPUnit_Framework_Assert::assertTag
Framework_AssertTest::testAssertTagAttributesMultiPartClassTrueB public function @covers PHPUnit_Framework_Assert::assertTag
Framework_AssertTest::testAssertTagAttributesRegexpFalse public function @covers PHPUnit_Framework_Assert::assertTag @expectedException PHPUnit_Framework_AssertionFailedError
Framework_AssertTest::testAssertTagAttributesRegexpModifierFalse public function @covers PHPUnit_Framework_Assert::assertTag @expectedException PHPUnit_Framework_AssertionFailedError
Framework_AssertTest::testAssertTagAttributesRegexpModifierTrue public function @covers PHPUnit_Framework_Assert::assertTag
Framework_AssertTest::testAssertTagAttributesRegexpTrueA public function @covers PHPUnit_Framework_Assert::assertTag
Framework_AssertTest::testAssertTagAttributesRegexpTrueB public function @covers PHPUnit_Framework_Assert::assertTag
Framework_AssertTest::testAssertTagAttributesTrueA public function @covers PHPUnit_Framework_Assert::assertTag
Framework_AssertTest::testAssertTagAttributesTrueB public function @covers PHPUnit_Framework_Assert::assertTag
Framework_AssertTest::testAssertTagCdataContentTrue public function @covers PHPUnit_Framework_Assert::assertTag
Framework_AssertTest::testAssertTagCdataontentFalse public function @covers PHPUnit_Framework_Assert::assertTag @expectedException PHPUnit_Framework_AssertionFailedError
Framework_AssertTest::testAssertTagChildFalse public function @covers PHPUnit_Framework_Assert::assertTag @expectedException PHPUnit_Framework_AssertionFailedError
Framework_AssertTest::testAssertTagChildrenCountFalse public function @covers PHPUnit_Framework_Assert::assertTag @expectedException PHPUnit_Framework_AssertionFailedError
Framework_AssertTest::testAssertTagChildrenCountTrue public function @covers PHPUnit_Framework_Assert::assertTag
Framework_AssertTest::testAssertTagChildrenGreaterThanFalse public function @covers PHPUnit_Framework_Assert::assertTag @expectedException PHPUnit_Framework_AssertionFailedError
Framework_AssertTest::testAssertTagChildrenGreaterThanTrue public function @covers PHPUnit_Framework_Assert::assertTag
Framework_AssertTest::testAssertTagChildrenLessThanFalse public function @covers PHPUnit_Framework_Assert::assertTag @expectedException PHPUnit_Framework_AssertionFailedError
Framework_AssertTest::testAssertTagChildrenLessThanTrue public function @covers PHPUnit_Framework_Assert::assertTag
Framework_AssertTest::testAssertTagChildrenOnlyFalse public function @covers PHPUnit_Framework_Assert::assertTag @expectedException PHPUnit_Framework_AssertionFailedError
Framework_AssertTest::testAssertTagChildrenOnlyTrue public function @covers PHPUnit_Framework_Assert::assertTag
Framework_AssertTest::testAssertTagChildTrue public function @covers PHPUnit_Framework_Assert::assertTag
Framework_AssertTest::testAssertTagContentAttributes public function @covers PHPUnit_Framework_Assert::assertTag
Framework_AssertTest::testAssertTagDescendantFalse public function @covers PHPUnit_Framework_Assert::assertTag @expectedException PHPUnit_Framework_AssertionFailedError
Framework_AssertTest::testAssertTagDescendantTrue public function @covers PHPUnit_Framework_Assert::assertTag
Framework_AssertTest::testAssertTagIdFalse public function @covers PHPUnit_Framework_Assert::assertTag @expectedException PHPUnit_Framework_AssertionFailedError
Framework_AssertTest::testAssertTagIdTrue public function @covers PHPUnit_Framework_Assert::assertTag
Framework_AssertTest::testAssertTagMultiplePossibleChildren public function @covers PHPUnit_Framework_Assert::assertTag
Framework_AssertTest::testAssertTagParentFalse public function @covers PHPUnit_Framework_Assert::assertTag @expectedException PHPUnit_Framework_AssertionFailedError
Framework_AssertTest::testAssertTagParentTrue public function @covers PHPUnit_Framework_Assert::assertTag
Framework_AssertTest::testAssertTagRegexpContentFalse public function @covers PHPUnit_Framework_Assert::assertTag @expectedException PHPUnit_Framework_AssertionFailedError
Framework_AssertTest::testAssertTagRegexpContentTrue public function @covers PHPUnit_Framework_Assert::assertTag
Framework_AssertTest::testAssertTagRegexpModifierContentTrue public function @covers PHPUnit_Framework_Assert::assertTag
Framework_AssertTest::testAssertTagStringContentFalse public function @covers PHPUnit_Framework_Assert::assertTag @expectedException PHPUnit_Framework_AssertionFailedError
Framework_AssertTest::testAssertTagStringContentTrue public function @covers PHPUnit_Framework_Assert::assertTag
Framework_AssertTest::testAssertTagTypeFalse public function @covers PHPUnit_Framework_Assert::assertTag @expectedException PHPUnit_Framework_AssertionFailedError
Framework_AssertTest::testAssertTagTypeIdFalse public function @covers PHPUnit_Framework_Assert::assertTag @expectedException PHPUnit_Framework_AssertionFailedError
Framework_AssertTest::testAssertTagTypeIdTrueA public function @covers PHPUnit_Framework_Assert::assertTag
Framework_AssertTest::testAssertTagTypeIdTrueB public function @covers PHPUnit_Framework_Assert::assertTag
Framework_AssertTest::testAssertTagTypeIdTrueC public function @covers PHPUnit_Framework_Assert::assertTag
Framework_AssertTest::testAssertTagTypeTrue public function @covers PHPUnit_Framework_Assert::assertTag
Framework_AssertTest::testAssertThatAnything public function @covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::anything
Framework_AssertTest::testAssertThatAnythingAndAnything public function @covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::anything @covers PHPUnit_Framework_Assert::logicalAnd
Framework_AssertTest::testAssertThatAnythingOrAnything public function @covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::anything @covers PHPUnit_Framework_Assert::logicalOr
Framework_AssertTest::testAssertThatAnythingXorNotAnything public function @covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::anything @covers PHPUnit_Framework_Assert::logicalNot @covers PHPUnit_Framework_Assert::logicalXor
Framework_AssertTest::testAssertThatArrayHasKey public function @covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::arrayHasKey
Framework_AssertTest::testAssertThatAttributeEquals public function @covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::attribute @covers PHPUnit_Framework_Assert::equalTo
Framework_AssertTest::testAssertThatAttributeEquals2 public function @covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::attribute @covers PHPUnit_Framework_Assert::equalTo @expectedException PHPUnit_Framework_AssertionFailedError
Framework_AssertTest::testAssertThatAttributeEqualTo public function @covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::attribute @covers PHPUnit_Framework_Assert::equalTo
Framework_AssertTest::testAssertThatClassHasAttribute public function @covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::classHasAttribute
Framework_AssertTest::testAssertThatClassHasStaticAttribute public function @covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::classHasStaticAttribute
Framework_AssertTest::testAssertThatContains public function @covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::contains
Framework_AssertTest::testAssertThatContainsOnly public function @covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::containsOnly
Framework_AssertTest::testAssertThatContainsOnlyInstancesOf public function @covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::containsOnlyInstancesOf
Framework_AssertTest::testAssertThatEqualTo public function @covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::equalTo
Framework_AssertTest::testAssertThatFileExists public function @covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::fileExists
Framework_AssertTest::testAssertThatGreaterThan public function @covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::greaterThan
Framework_AssertTest::testAssertThatGreaterThanOrEqual public function @covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::greaterThanOrEqual
Framework_AssertTest::testAssertThatIdenticalTo public function @covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::identicalTo
Framework_AssertTest::testAssertThatIsInstanceOf public function @covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::isInstanceOf
Framework_AssertTest::testAssertThatIsType public function @covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::isType
Framework_AssertTest::testAssertThatLessThan public function @covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::lessThan
Framework_AssertTest::testAssertThatLessThanOrEqual public function @covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::lessThanOrEqual
Framework_AssertTest::testAssertThatMatchesRegularExpression public function @covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::matchesRegularExpression
Framework_AssertTest::testAssertThatObjectHasAttribute public function @covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::objectHasAttribute
Framework_AssertTest::testAssertThatStringContains public function @covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::stringContains
Framework_AssertTest::testAssertTrue public function @covers PHPUnit_Framework_Assert::assertTrue
Framework_AssertTest::testAssertXmlFileEqualsXmlFile public function @covers PHPUnit_Framework_Assert::assertXmlFileEqualsXmlFile
Framework_AssertTest::testAssertXmlFileNotEqualsXmlFile public function @covers PHPUnit_Framework_Assert::assertXmlFileNotEqualsXmlFile
Framework_AssertTest::testAssertXmlStringEqualsXmlFile public function @covers PHPUnit_Framework_Assert::assertXmlStringEqualsXmlFile
Framework_AssertTest::testAssertXmlStringEqualsXmlString public function @covers PHPUnit_Framework_Assert::assertXmlStringEqualsXmlString
Framework_AssertTest::testAssertXmlStringNotEqualsXmlString public function @covers PHPUnit_Framework_Assert::assertXmlStringNotEqualsXmlString
Framework_AssertTest::testAttributeGreaterThan public function @covers PHPUnit_Framework_Assert::assertAttributeGreaterThan
Framework_AssertTest::testAttributeGreaterThanOrEqual public function @covers PHPUnit_Framework_Assert::assertAttributeGreaterThanOrEqual
Framework_AssertTest::testAttributeLessThan public function @covers PHPUnit_Framework_Assert::assertAttributeLessThan
Framework_AssertTest::testAttributeLessThanOrEqual public function @covers PHPUnit_Framework_Assert::assertAttributeLessThanOrEqual
Framework_AssertTest::testClassHasPublicAttribute public function @covers PHPUnit_Framework_Assert::assertClassHasAttribute
Framework_AssertTest::testClassHasPublicStaticAttribute public function @covers PHPUnit_Framework_Assert::assertClassHasStaticAttribute
Framework_AssertTest::testClassNotHasPublicAttribute public function @covers PHPUnit_Framework_Assert::assertClassNotHasAttribute
Framework_AssertTest::testClassNotHasPublicStaticAttribute public function @covers PHPUnit_Framework_Assert::assertClassNotHasStaticAttribute
Framework_AssertTest::testFail public function @covers PHPUnit_Framework_Assert::fail
Framework_AssertTest::testGreaterThan public function @covers PHPUnit_Framework_Assert::assertGreaterThan
Framework_AssertTest::testGreaterThanOrEqual public function @covers PHPUnit_Framework_Assert::assertGreaterThanOrEqual
Framework_AssertTest::testLessThan public function @covers PHPUnit_Framework_Assert::assertLessThan
Framework_AssertTest::testLessThanOrEqual public function @covers PHPUnit_Framework_Assert::assertLessThanOrEqual
Framework_AssertTest::testMarkTestIncomplete public function @covers PHPUnit_Framework_Assert::markTestIncomplete
Framework_AssertTest::testMarkTestSkipped public function @covers PHPUnit_Framework_Assert::markTestSkipped
Framework_AssertTest::testObjectHasOnTheFlyAttribute public function @covers PHPUnit_Framework_Assert::assertObjectHasAttribute
Framework_AssertTest::testObjectHasPrivateAttribute public function @covers PHPUnit_Framework_Assert::assertObjectHasAttribute
Framework_AssertTest::testObjectHasProtectedAttribute public function @covers PHPUnit_Framework_Assert::assertObjectHasAttribute
Framework_AssertTest::testObjectHasPublicAttribute public function @covers PHPUnit_Framework_Assert::assertObjectHasAttribute
Framework_AssertTest::testObjectNotHasOnTheFlyAttribute public function @covers PHPUnit_Framework_Assert::assertObjectNotHasAttribute
Framework_AssertTest::testObjectNotHasPrivateAttribute public function @covers PHPUnit_Framework_Assert::assertObjectNotHasAttribute
Framework_AssertTest::testObjectNotHasProtectedAttribute public function @covers PHPUnit_Framework_Assert::assertObjectNotHasAttribute
Framework_AssertTest::testObjectNotHasPublicAttribute public function @covers PHPUnit_Framework_Assert::assertObjectNotHasAttribute
Framework_AssertTest::testReadAttribute public function @covers PHPUnit_Framework_Assert::readAttribute
Framework_AssertTest::testReadAttribute2 public function @covers PHPUnit_Framework_Assert::readAttribute
Framework_AssertTest::testReadAttribute3 public function @covers PHPUnit_Framework_Assert::readAttribute @expectedException PHPUnit_Framework_Exception
Framework_AssertTest::testReadAttribute4 public function @covers PHPUnit_Framework_Assert::readAttribute @expectedException PHPUnit_Framework_Exception
Framework_AssertTest::testReadAttribute5 public function @covers PHPUnit_Framework_Assert::readAttribute @expectedException PHPUnit_Framework_Exception
Framework_AssertTest::testXmlStringNotEqualsXmlFile public function @covers PHPUnit_Framework_Assert::assertXmlStringNotEqualsXmlFile
Framework_AssertTest::testXMLStructureAttributesAreSameButValuesAreNot public function @covers PHPUnit_Framework_Assert::assertEqualXMLStructure
Framework_AssertTest::testXMLStructureIgnoreTextNodes public function @covers PHPUnit_Framework_Assert::assertEqualXMLStructure
Framework_AssertTest::testXMLStructureIsSame public function @covers PHPUnit_Framework_Assert::assertEqualXMLStructure
Framework_AssertTest::testXMLStructureIsSameButDataIsNot public function @covers PHPUnit_Framework_Assert::assertEqualXMLStructure
Framework_AssertTest::testXMLStructureWrongNumberOfAttributes public function @covers PHPUnit_Framework_Assert::assertEqualXMLStructure @expectedException PHPUnit_Framework_ExpectationFailedException
Framework_AssertTest::testXMLStructureWrongNumberOfNodes public function @covers PHPUnit_Framework_Assert::assertEqualXMLStructure @expectedException PHPUnit_Framework_ExpectationFailedException
Framework_AssertTest::validInvalidJsonDataprovider public static function
PHPUnit_Framework_Assert::$count private static property
PHPUnit_Framework_Assert::anything public static function Returns a PHPUnit_Framework_Constraint_IsAnything matcher object.
PHPUnit_Framework_Assert::arrayHasKey public static function Returns a PHPUnit_Framework_Constraint_ArrayHasKey matcher object.
PHPUnit_Framework_Assert::assertArrayHasKey public static function Asserts that an array has a specified key.
PHPUnit_Framework_Assert::assertArrayNotHasKey public static function Asserts that an array does not have a specified key.
PHPUnit_Framework_Assert::assertAttributeContains public static function Asserts that a haystack that is stored in a static attribute of a class or an attribute of an object contains a needle.
PHPUnit_Framework_Assert::assertAttributeContainsOnly public static function Asserts that a haystack that is stored in a static attribute of a class or an attribute of an object contains only values of a given type.
PHPUnit_Framework_Assert::assertAttributeCount public static function Asserts the number of elements of an array, Countable or Iterator that is stored in an attribute.
PHPUnit_Framework_Assert::assertAttributeEmpty public static function Asserts that a static attribute of a class or an attribute of an object is empty.
PHPUnit_Framework_Assert::assertAttributeEquals public static function Asserts that a variable is equal to an attribute of an object.
PHPUnit_Framework_Assert::assertAttributeGreaterThan public static function Asserts that an attribute is greater than another value.
PHPUnit_Framework_Assert::assertAttributeGreaterThanOrEqual public static function Asserts that an attribute is greater than or equal to another value.
PHPUnit_Framework_Assert::assertAttributeInstanceOf public static function Asserts that an attribute is of a given type.
PHPUnit_Framework_Assert::assertAttributeInternalType public static function Asserts that an attribute is of a given type.
PHPUnit_Framework_Assert::assertAttributeLessThan public static function Asserts that an attribute is smaller than another value.
PHPUnit_Framework_Assert::assertAttributeLessThanOrEqual public static function Asserts that an attribute is smaller than or equal to another value.
PHPUnit_Framework_Assert::assertAttributeNotContains public static function Asserts that a haystack that is stored in a static attribute of a class or an attribute of an object does not contain a needle.
PHPUnit_Framework_Assert::assertAttributeNotContainsOnly public static function Asserts that a haystack that is stored in a static attribute of a class or an attribute of an object does not contain only values of a given type.
PHPUnit_Framework_Assert::assertAttributeNotCount public static function Asserts the number of elements of an array, Countable or Iterator that is stored in an attribute.
PHPUnit_Framework_Assert::assertAttributeNotEmpty public static function Asserts that a static attribute of a class or an attribute of an object is not empty.
PHPUnit_Framework_Assert::assertAttributeNotEquals public static function Asserts that a variable is not equal to an attribute of an object.
PHPUnit_Framework_Assert::assertAttributeNotInstanceOf public static function Asserts that an attribute is of a given type.
PHPUnit_Framework_Assert::assertAttributeNotInternalType public static function Asserts that an attribute is of a given type.
PHPUnit_Framework_Assert::assertAttributeNotSame public static function Asserts that a variable and an attribute of an object do not have the same type and value.
PHPUnit_Framework_Assert::assertAttributeSame public static function Asserts that a variable and an attribute of an object have the same type and value.
PHPUnit_Framework_Assert::assertClassHasAttribute public static function Asserts that a class has a specified attribute.
PHPUnit_Framework_Assert::assertClassHasStaticAttribute public static function Asserts that a class has a specified static attribute.
PHPUnit_Framework_Assert::assertClassNotHasAttribute public static function Asserts that a class does not have a specified attribute.
PHPUnit_Framework_Assert::assertClassNotHasStaticAttribute public static function Asserts that a class does not have a specified static attribute.
PHPUnit_Framework_Assert::assertContains public static function Asserts that a haystack contains a needle.
PHPUnit_Framework_Assert::assertContainsOnly public static function Asserts that a haystack contains only values of a given type.
PHPUnit_Framework_Assert::assertContainsOnlyInstancesOf public static function Asserts that a haystack contains only instances of a given classname
PHPUnit_Framework_Assert::assertCount public static function Asserts the number of elements of an array, Countable or Iterator.
PHPUnit_Framework_Assert::assertEmpty public static function Asserts that a variable is empty.
PHPUnit_Framework_Assert::assertEquals public static function Asserts that two variables are equal.
PHPUnit_Framework_Assert::assertEqualXMLStructure public static function Asserts that a hierarchy of DOMElements matches.
PHPUnit_Framework_Assert::assertFalse public static function Asserts that a condition is false.
PHPUnit_Framework_Assert::assertFileEquals public static function Asserts that the contents of one file is equal to the contents of another file.
PHPUnit_Framework_Assert::assertFileExists public static function Asserts that a file exists.
PHPUnit_Framework_Assert::assertFileNotEquals public static function Asserts that the contents of one file is not equal to the contents of another file.
PHPUnit_Framework_Assert::assertFileNotExists public static function Asserts that a file does not exist.
PHPUnit_Framework_Assert::assertGreaterThan public static function Asserts that a value is greater than another value.
PHPUnit_Framework_Assert::assertGreaterThanOrEqual public static function Asserts that a value is greater than or equal to another value.
PHPUnit_Framework_Assert::assertInstanceOf public static function Asserts that a variable is of a given type.
PHPUnit_Framework_Assert::assertInternalType public static function Asserts that a variable is of a given type.
PHPUnit_Framework_Assert::assertJson public static function Asserts that a string is a valid JSON string.
PHPUnit_Framework_Assert::assertJsonFileEqualsJsonFile public static function Asserts that two JSON files are equal.
PHPUnit_Framework_Assert::assertJsonFileNotEqualsJsonFile public static function Asserts that two JSON files are not equal.
PHPUnit_Framework_Assert::assertJsonStringEqualsJsonFile public static function Asserts that the generated JSON encoded object and the content of the given file are equal.
PHPUnit_Framework_Assert::assertJsonStringEqualsJsonString public static function Asserts that two given JSON encoded objects or arrays are equal.
PHPUnit_Framework_Assert::assertJsonStringNotEqualsJsonFile public static function Asserts that the generated JSON encoded object and the content of the given file are not equal.
PHPUnit_Framework_Assert::assertJsonStringNotEqualsJsonString public static function Asserts that two given JSON encoded objects or arrays are not equal.
PHPUnit_Framework_Assert::assertLessThan public static function Asserts that a value is smaller than another value.
PHPUnit_Framework_Assert::assertLessThanOrEqual public static function Asserts that a value is smaller than or equal to another value.
PHPUnit_Framework_Assert::assertNotContains public static function Asserts that a haystack does not contain a needle.
PHPUnit_Framework_Assert::assertNotContainsOnly public static function Asserts that a haystack does not contain only values of a given type.
PHPUnit_Framework_Assert::assertNotCount public static function Asserts the number of elements of an array, Countable or Iterator.
PHPUnit_Framework_Assert::assertNotEmpty public static function Asserts that a variable is not empty.
PHPUnit_Framework_Assert::assertNotEquals public static function Asserts that two variables are not equal.
PHPUnit_Framework_Assert::assertNotInstanceOf public static function Asserts that a variable is not of a given type.
PHPUnit_Framework_Assert::assertNotInternalType public static function Asserts that a variable is not of a given type.
PHPUnit_Framework_Assert::assertNotNull public static function Asserts that a variable is not NULL.
PHPUnit_Framework_Assert::assertNotRegExp public static function Asserts that a string does not match a given regular expression.
PHPUnit_Framework_Assert::assertNotSame public static function Asserts that two variables do not have the same type and value. Used on objects, it asserts that two variables do not reference the same object.
PHPUnit_Framework_Assert::assertNotSameSize public static function Assert that the size of two arrays (or `Countable` or `Iterator` objects) is not the same.
PHPUnit_Framework_Assert::assertNotTag public static function This assertion is the exact opposite of assertTag().
PHPUnit_Framework_Assert::assertNull public static function Asserts that a variable is NULL.
PHPUnit_Framework_Assert::assertObjectHasAttribute public static function Asserts that an object has a specified attribute.
PHPUnit_Framework_Assert::assertObjectNotHasAttribute public static function Asserts that an object does not have a specified attribute.
PHPUnit_Framework_Assert::assertRegExp public static function Asserts that a string matches a given regular expression.
PHPUnit_Framework_Assert::assertSame public static function Asserts that two variables have the same type and value. Used on objects, it asserts that two variables reference the same object.
PHPUnit_Framework_Assert::assertSameSize public static function Assert that the size of two arrays (or `Countable` or `Iterator` objects) is the same.
PHPUnit_Framework_Assert::assertSelectCount public static function Assert the presence, absence, or count of elements in a document matching the CSS $selector, regardless of the contents of those elements.
PHPUnit_Framework_Assert::assertSelectEquals public static function assertSelectEquals("#binder .name", "Chuck", true, $xml); // any? assertSelectEquals("#binder .name", "Chuck", false, $xml); // none?
PHPUnit_Framework_Assert::assertSelectRegExp public static function assertSelectRegExp("#binder .name", "/Mike|Derek/", true, $xml); // any? assertSelectRegExp("#binder .name", "/Mike|Derek/", 3, $xml); // 3?
PHPUnit_Framework_Assert::assertStringEndsNotWith public static function Asserts that a string ends not with a given prefix.
PHPUnit_Framework_Assert::assertStringEndsWith public static function Asserts that a string ends with a given prefix.
PHPUnit_Framework_Assert::assertStringEqualsFile public static function Asserts that the contents of a string is equal to the contents of a file.
PHPUnit_Framework_Assert::assertStringMatchesFormat public static function Asserts that a string matches a given format string.
PHPUnit_Framework_Assert::assertStringMatchesFormatFile public static function Asserts that a string matches a given format file.
PHPUnit_Framework_Assert::assertStringNotEqualsFile public static function Asserts that the contents of a string is not equal to the contents of a file.
PHPUnit_Framework_Assert::assertStringNotMatchesFormat public static function Asserts that a string does not match a given format string.
PHPUnit_Framework_Assert::assertStringNotMatchesFormatFile public static function Asserts that a string does not match a given format string.
PHPUnit_Framework_Assert::assertStringStartsNotWith public static function Asserts that a string starts not with a given prefix.
PHPUnit_Framework_Assert::assertStringStartsWith public static function Asserts that a string starts with a given prefix.
PHPUnit_Framework_Assert::assertTag public static function Evaluate an HTML or XML string and assert its structure and/or contents.
PHPUnit_Framework_Assert::assertThat public static function Evaluates a PHPUnit_Framework_Constraint matcher object.
PHPUnit_Framework_Assert::assertTrue public static function Asserts that a condition is true.
PHPUnit_Framework_Assert::assertXmlFileEqualsXmlFile public static function Asserts that two XML files are equal.
PHPUnit_Framework_Assert::assertXmlFileNotEqualsXmlFile public static function Asserts that two XML files are not equal.
PHPUnit_Framework_Assert::assertXmlStringEqualsXmlFile public static function Asserts that two XML documents are equal.
PHPUnit_Framework_Assert::assertXmlStringEqualsXmlString public static function Asserts that two XML documents are equal.
PHPUnit_Framework_Assert::assertXmlStringNotEqualsXmlFile public static function Asserts that two XML documents are not equal.
PHPUnit_Framework_Assert::assertXmlStringNotEqualsXmlString public static function Asserts that two XML documents are not equal.
PHPUnit_Framework_Assert::attribute public static function Returns a PHPUnit_Framework_Constraint_Attribute matcher object.
PHPUnit_Framework_Assert::attributeEqualTo public static function Returns a PHPUnit_Framework_Constraint_IsEqual matcher object that is wrapped in a PHPUnit_Framework_Constraint_Attribute matcher object.
PHPUnit_Framework_Assert::callback public static function Returns a PHPUnit_Framework_Constraint_Callback matcher object.
PHPUnit_Framework_Assert::classHasAttribute public static function Returns a PHPUnit_Framework_Constraint_ClassHasAttribute matcher object.
PHPUnit_Framework_Assert::classHasStaticAttribute public static function Returns a PHPUnit_Framework_Constraint_ClassHasStaticAttribute matcher object.
PHPUnit_Framework_Assert::contains public static function Returns a PHPUnit_Framework_Constraint_TraversableContains matcher object.
PHPUnit_Framework_Assert::containsOnly public static function Returns a PHPUnit_Framework_Constraint_TraversableContainsOnly matcher object.
PHPUnit_Framework_Assert::containsOnlyInstancesOf public static function Returns a PHPUnit_Framework_Constraint_TraversableContainsOnly matcher object.
PHPUnit_Framework_Assert::equalTo public static function Returns a PHPUnit_Framework_Constraint_IsEqual matcher object.
PHPUnit_Framework_Assert::fail public static function Fails a test with the given message.
PHPUnit_Framework_Assert::fileExists public static function Returns a PHPUnit_Framework_Constraint_FileExists matcher object.
PHPUnit_Framework_Assert::getCount public static function Return the current assertion count.
PHPUnit_Framework_Assert::greaterThan public static function Returns a PHPUnit_Framework_Constraint_GreaterThan matcher object.
PHPUnit_Framework_Assert::greaterThanOrEqual public static function Returns a PHPUnit_Framework_Constraint_Or matcher object that wraps a PHPUnit_Framework_Constraint_IsEqual and a PHPUnit_Framework_Constraint_GreaterThan matcher object.
PHPUnit_Framework_Assert::identicalTo public static function Returns a PHPUnit_Framework_Constraint_IsIdentical matcher object.
PHPUnit_Framework_Assert::isEmpty public static function Returns a PHPUnit_Framework_Constraint_IsEmpty matcher object.
PHPUnit_Framework_Assert::isFalse public static function Returns a PHPUnit_Framework_Constraint_IsFalse matcher object.
PHPUnit_Framework_Assert::isInstanceOf public static function Returns a PHPUnit_Framework_Constraint_IsInstanceOf matcher object.
PHPUnit_Framework_Assert::isJson public static function Returns a PHPUnit_Framework_Constraint_IsJson matcher object.
PHPUnit_Framework_Assert::isNull public static function Returns a PHPUnit_Framework_Constraint_IsNull matcher object.
PHPUnit_Framework_Assert::isTrue public static function Returns a PHPUnit_Framework_Constraint_IsTrue matcher object.
PHPUnit_Framework_Assert::isType public static function Returns a PHPUnit_Framework_Constraint_IsType matcher object.
PHPUnit_Framework_Assert::lessThan public static function Returns a PHPUnit_Framework_Constraint_LessThan matcher object.
PHPUnit_Framework_Assert::lessThanOrEqual public static function Returns a PHPUnit_Framework_Constraint_Or matcher object that wraps a PHPUnit_Framework_Constraint_IsEqual and a PHPUnit_Framework_Constraint_LessThan matcher object.
PHPUnit_Framework_Assert::logicalAnd public static function Returns a PHPUnit_Framework_Constraint_And matcher object.
PHPUnit_Framework_Assert::logicalNot public static function Returns a PHPUnit_Framework_Constraint_Not matcher object.
PHPUnit_Framework_Assert::logicalOr public static function Returns a PHPUnit_Framework_Constraint_Or matcher object.
PHPUnit_Framework_Assert::logicalXor public static function Returns a PHPUnit_Framework_Constraint_Xor matcher object.
PHPUnit_Framework_Assert::markTestIncomplete public static function Mark the test as incomplete.
PHPUnit_Framework_Assert::markTestSkipped public static function Mark the test as skipped.
PHPUnit_Framework_Assert::matches public static function Returns a PHPUnit_Framework_Constraint_StringMatches matcher object.
PHPUnit_Framework_Assert::matchesRegularExpression public static function Returns a PHPUnit_Framework_Constraint_PCREMatch matcher object.
PHPUnit_Framework_Assert::objectHasAttribute public static function Returns a PHPUnit_Framework_Constraint_ObjectHasAttribute matcher object.
PHPUnit_Framework_Assert::readAttribute public static function Returns the value of an attribute of a class or an object. This also works for attributes that are declared protected or private.
PHPUnit_Framework_Assert::resetCount public static function Reset the assertion counter.
PHPUnit_Framework_Assert::stringContains public static function Returns a PHPUnit_Framework_Constraint_StringContains matcher object.
PHPUnit_Framework_Assert::stringEndsWith public static function Returns a PHPUnit_Framework_Constraint_StringEndsWith matcher object.
PHPUnit_Framework_Assert::stringStartsWith public static function Returns a PHPUnit_Framework_Constraint_StringStartsWith matcher object.
PHPUnit_Framework_TestCase::$backupGlobals protected property Enable or disable the backup and restoration of the $GLOBALS array. Overwrite this attribute in a child class of TestCase. Setting this attribute in setUp() has no effect! 1
PHPUnit_Framework_TestCase::$backupGlobalsBlacklist protected property 1
PHPUnit_Framework_TestCase::$backupStaticAttributes protected property Enable or disable the backup and restoration of static attributes. Overwrite this attribute in a child class of TestCase. Setting this attribute in setUp() has no effect! 1
PHPUnit_Framework_TestCase::$backupStaticAttributesBlacklist protected property
PHPUnit_Framework_TestCase::$data private property
PHPUnit_Framework_TestCase::$dataName private property
PHPUnit_Framework_TestCase::$dependencies private property
PHPUnit_Framework_TestCase::$dependencyInput private property
PHPUnit_Framework_TestCase::$expectedException private property The name of the expected Exception.
PHPUnit_Framework_TestCase::$expectedExceptionCode private property The code of the expected Exception.
PHPUnit_Framework_TestCase::$expectedExceptionMessage private property The message of the expected Exception.
PHPUnit_Framework_TestCase::$hasPerformedExpectationsOnOutput private property
PHPUnit_Framework_TestCase::$iniSettings private property
PHPUnit_Framework_TestCase::$inIsolation private property Whether or not this test is running in a separate PHP process.
PHPUnit_Framework_TestCase::$locale private property
PHPUnit_Framework_TestCase::$mockObjects private property
PHPUnit_Framework_TestCase::$name private property The name of the test case.
PHPUnit_Framework_TestCase::$numAssertions private property
PHPUnit_Framework_TestCase::$output private property
PHPUnit_Framework_TestCase::$outputBufferingActive private property
PHPUnit_Framework_TestCase::$outputCallback private property
PHPUnit_Framework_TestCase::$outputExpectedRegex private property
PHPUnit_Framework_TestCase::$outputExpectedString private property
PHPUnit_Framework_TestCase::$preserveGlobalState protected property Whether or not this test should preserve the global state when running in a separate PHP process.
PHPUnit_Framework_TestCase::$required private property The required preconditions for a test.
PHPUnit_Framework_TestCase::$result private property 2
PHPUnit_Framework_TestCase::$runTestInSeparateProcess protected property Whether or not this test is to be run in a separate PHP process. 1
PHPUnit_Framework_TestCase::$status private property
PHPUnit_Framework_TestCase::$statusMessage private property
PHPUnit_Framework_TestCase::$testResult private property
PHPUnit_Framework_TestCase::$useErrorHandler private property 1
PHPUnit_Framework_TestCase::$useOutputBuffering private property 1
PHPUnit_Framework_TestCase::addToAssertionCount public function Adds a value to the assertion counter.
PHPUnit_Framework_TestCase::any public static function Returns a matcher that matches when the method it is evaluated for is executed zero or more times.
PHPUnit_Framework_TestCase::assertPostConditions protected function Performs assertions shared by all tests of a test case. 6
PHPUnit_Framework_TestCase::assertPreConditions protected function Performs assertions shared by all tests of a test case. 6
PHPUnit_Framework_TestCase::at public static function Returns a matcher that matches when the method it is evaluated for is invoked at the given $index.
PHPUnit_Framework_TestCase::atLeastOnce public static function Returns a matcher that matches when the method it is evaluated for is executed at least once.
PHPUnit_Framework_TestCase::checkRequirements protected function @since Method available since Release 3.6.0
PHPUnit_Framework_TestCase::count public function Counts the number of test cases executed by run(TestResult result).
PHPUnit_Framework_TestCase::createResult protected function Creates a default TestResult object.
PHPUnit_Framework_TestCase::dataToString protected function @since Method available since Release 3.2.1
PHPUnit_Framework_TestCase::exactly public static function Returns a matcher that matches when the method it is evaluated for is executed exactly $count times.
PHPUnit_Framework_TestCase::expectOutputRegex public function @since Method available since Release 3.6.0
PHPUnit_Framework_TestCase::expectOutputString public function @since Method available since Release 3.6.0
PHPUnit_Framework_TestCase::getActualOutput public function @since Method available since Release 3.6.0
PHPUnit_Framework_TestCase::getAnnotations public function Returns the annotations for this test.
PHPUnit_Framework_TestCase::getDataSetAsString protected function Gets the data set description of a TestCase.
PHPUnit_Framework_TestCase::getExpectedException public function @since Method available since Release 3.2.0
PHPUnit_Framework_TestCase::getMock public function Returns a mock object for the specified class.
PHPUnit_Framework_TestCase::getMockBuilder public function Returns a builder object to create mock objects using a fluent interface.
PHPUnit_Framework_TestCase::getMockClass protected function Mocks the specified class and returns the name of the mocked class.
PHPUnit_Framework_TestCase::getMockForAbstractClass public function Returns a mock object for the specified abstract class with all abstract methods of the class mocked. Concrete methods to mock can be specified with the last parameter
PHPUnit_Framework_TestCase::getMockFromWsdl protected function Returns a mock object based on the given WSDL file.
PHPUnit_Framework_TestCase::getName public function Gets the name of a TestCase.
PHPUnit_Framework_TestCase::getNumAssertions public function Returns the number of assertions performed by this test.
PHPUnit_Framework_TestCase::getObjectForTrait protected function Returns an object for the specified trait.
PHPUnit_Framework_TestCase::getResult public function @since Method available since Release 3.4.0
PHPUnit_Framework_TestCase::getSize public function Returns the size of the test.
PHPUnit_Framework_TestCase::getStatus public function Returns the status of this test.
PHPUnit_Framework_TestCase::getStatusMessage public function Returns the status message of this test.
PHPUnit_Framework_TestCase::getTestResultObject public function @since Method available since Release 3.5.7
PHPUnit_Framework_TestCase::handleDependencies protected function @since Method available since Release 3.5.4
PHPUnit_Framework_TestCase::hasFailed public function Returns whether or not this test has failed.
PHPUnit_Framework_TestCase::hasOutput public function @since Method available since Release 3.6.0
PHPUnit_Framework_TestCase::hasPerformedExpectationsOnOutput public function @since Method available since Release 3.6.5
PHPUnit_Framework_TestCase::iniSet protected function This method is a wrapper for the ini_set() function that automatically resets the modified php.ini setting to its original value after the test is run.
PHPUnit_Framework_TestCase::never public static function Returns a matcher that matches when the method it is evaluated for is never executed.
PHPUnit_Framework_TestCase::once public static function Returns a matcher that matches when the method it is evaluated for is executed exactly once.
PHPUnit_Framework_TestCase::onConsecutiveCalls public static function @since Method available since Release 3.0.0
PHPUnit_Framework_TestCase::onNotSuccessfulTest protected function This method is called when a test method did not execute successfully. 1
PHPUnit_Framework_TestCase::prepareTemplate protected function Performs custom preparations on the process isolation template.
PHPUnit_Framework_TestCase::returnArgument public static function @since Method available since Release 3.3.0
PHPUnit_Framework_TestCase::returnCallback public static function @since Method available since Release 3.3.0
PHPUnit_Framework_TestCase::returnSelf public static function Returns the current object.
PHPUnit_Framework_TestCase::returnValue public static function @since Method available since Release 3.0.0
PHPUnit_Framework_TestCase::returnValueMap public static function @since Method available since Release 3.6.0
PHPUnit_Framework_TestCase::run public function Runs the test case and collects the results in a TestResult object. If no TestResult object is passed a new one will be created. Overrides PHPUnit_Framework_Test::run
PHPUnit_Framework_TestCase::runBare public function Runs the bare test sequence.
PHPUnit_Framework_TestCase::runTest protected function Override to run the test and assert its state. 5
PHPUnit_Framework_TestCase::setBackupGlobals public function Calling this method in setUp() has no effect!
PHPUnit_Framework_TestCase::setBackupStaticAttributes public function Calling this method in setUp() has no effect!
PHPUnit_Framework_TestCase::setDependencies public function Sets the dependencies of a TestCase.
PHPUnit_Framework_TestCase::setDependencyInput public function Sets
PHPUnit_Framework_TestCase::setExpectedException public function @since Method available since Release 3.2.0
PHPUnit_Framework_TestCase::setExpectedExceptionFromAnnotation protected function @since Method available since Release 3.4.0
PHPUnit_Framework_TestCase::setInIsolation public function @since Method available since Release 3.4.0
PHPUnit_Framework_TestCase::setLocale protected function This method is a wrapper for the setlocale() function that automatically resets the locale to its original value after the test is run.
PHPUnit_Framework_TestCase::setName public function Sets the name of a TestCase.
PHPUnit_Framework_TestCase::setOutputCallback public function @since Method available since Release 3.6.0
PHPUnit_Framework_TestCase::setPreserveGlobalState public function @since Method available since Release 3.4.0
PHPUnit_Framework_TestCase::setRequirementsFromAnnotation protected function @since Method available since Release 3.6.0
PHPUnit_Framework_TestCase::setResult public function @since Method available since Release 3.4.0
PHPUnit_Framework_TestCase::setRunTestInSeparateProcess public function @since Method available since Release 3.4.0
PHPUnit_Framework_TestCase::setTestResultObject public function @since Method available since Release 3.6.0
PHPUnit_Framework_TestCase::setUpBeforeClass public static function This method is called before the first test of this test class is run. 1
PHPUnit_Framework_TestCase::setUseErrorHandler public function @since Method available since Release 3.4.0
PHPUnit_Framework_TestCase::setUseErrorHandlerFromAnnotation protected function @since Method available since Release 3.4.0
PHPUnit_Framework_TestCase::setUseOutputBuffering public function @since Method available since Release 3.4.0
PHPUnit_Framework_TestCase::setUseOutputBufferingFromAnnotation protected function @since Method available since Release 3.4.0
PHPUnit_Framework_TestCase::tearDown protected function Tears down the fixture, for example, close a network connection. This method is called after a test is executed. 7
PHPUnit_Framework_TestCase::tearDownAfterClass public static function This method is called after the last test of this test class is run. 1
PHPUnit_Framework_TestCase::throwException public static function @since Method available since Release 3.1.0
PHPUnit_Framework_TestCase::toString public function Returns a string representation of the test case. Overrides PHPUnit_Framework_SelfDescribing::toString 1
PHPUnit_Framework_TestCase::verifyMockObjects protected function Verifies the mock object expectations.
PHPUnit_Framework_TestCase::__construct public function Constructs a test case with the given name. 3