Included vendor/ to the project

This commit is contained in:
2017-09-13 09:35:32 +07:00
parent e72205ff09
commit 17f1643875
2483 changed files with 179073 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
<?php
/*
* This file is part of DbUnit.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
use PHPUnit\DbUnit\Constraint\TableRowCount;
use PHPUnit\Framework\TestCase;
use PHPUnit\Framework\ExpectationFailedException;
class Extensions_Database_Constraint_TableRowCountTest extends TestCase
{
public function testConstraint()
{
$constraint = new TableRowCount('name', 42);
$this->assertTrue($constraint->evaluate(42, '', true));
$this->assertFalse($constraint->evaluate(24, '', true));
$this->assertEquals('is equal to expected row count 42', $constraint->toString());
try {
$this->assertThat(24, $constraint, '');
} catch (ExpectationFailedException $e) {
$this->assertEquals(
'Failed asserting that 24 is equal to expected row count 42.',
$e->getMessage()
);
}
}
}