phpmock\test\MockNamespaceTest::testDefiningNamespaces PHP Метод

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

Tests defining mocks in a different namespace.
    public function testDefiningNamespaces()
    {
        $this->builder->setNamespace(__NAMESPACE__);
        $this->mock = $this->builder->build();
        $this->mock->enable();
        $this->assertEquals(1234, time());
    }