/** * @issue issue/35 */ public function testCallingSelfOnlyReturnsLastMockCreatedOrCurrentMockBeingProgrammedSinceTheyAreOneAndTheSame() { ehough_mockery_Mockery::setContainer($this->container); $m = $this->container->mock('MockeryTestFoo'); $this->assertFalse($this->container->self() instanceof MockeryTestFoo2); //$m = $this->container->mock('MockeryTestFoo2'); //$this->assertTrue($this->container->self() instanceof MockeryTestFoo2); //$m = $this->container->mock('MockeryTestFoo'); //$this->assertFalse(ehough_mockery_Mockery::self() instanceof MockeryTestFoo2); //$this->assertTrue(ehough_mockery_Mockery::self() instanceof MockeryTestFoo); ehough_mockery_Mockery::resetContainer(); }