Extension\ExistsTest::testAssertations PHP Метод

testAssertations() публичный Метод

public testAssertations ( )
    public function testAssertations()
    {
        $t = new \Test\Exists();
        $this->assertTrue($t->testClassExists('TestExClass'));
        $this->assertFalse($t->testClassExists('TestExClassx'));
        $this->assertFalse($t->testClassExists('TestExInterface'));
        // with namespace
        $this->assertTrue($t->testClassExists('\\Test\\Exists'));
        $this->assertFalse($t->testInterfaceExists('TestExClass'));
        // class not interface
        $this->assertTrue($t->testInterfaceExists('TestExInterface'));
        $this->assertFalse($t->testInterfaceExists('TestExInterfacex'));
        $this->assertTrue($t->testMethodExists($t, 'testMethodExists'));
        $this->assertTrue($t->testFileExists(__DIR__ . '/php/exists.php'));
        $this->assertFalse($t->testFileExists(__DIR__ . '/php/existsxxxx.php'));
    }