Lines Matching refs:mock
587 $mock = $this->createMock(Mockable::class);
589 $this->assertInstanceOf(Mockable::class, $mock);
590 $this->assertInstanceOf(PHPUnit_Framework_MockObject_MockObject::class, $mock);
596 $mock = $this->createMock(Mockable::class);
598 $this->assertNull($mock->foo());
599 $this->assertNull($mock->bar());
605 $mock = $this->createPartialMock(Mockable::class, ['foo']);
607 $this->assertNull($mock->foo());
608 $this->assertTrue($mock->bar());
614 $mock = $this->createPartialMock(Mockable::class, []);
616 $this->assertTrue($mock->foo());
617 $this->assertTrue($mock->bar());
623 $mock = $this->createMock(Mockable::class);
625 $this->assertFalse($mock->constructorCalled);
631 $mock = $this->createMock(Mockable::class);
633 $cloned = clone $mock;
640 $mock = $this->createConfiguredMock(
647 $this->assertFalse($mock->foo());
648 $this->assertNull($mock->bar());