/** * Setup the test environment. * * @return void */ public function setUp() { parent::setUp(); $this->testModel->tag('Apple,Banana,Cherry'); $this->testModelAB = $this->newModel()->tag('Apple,Banana,Cherry'); // Tag another model $this->testDummy = TestDummy::create(['title' => 'title']); $this->testDummy->tag('Durian'); }
function testSettingExpectationOnMissingMethodThrowsError() { $mock = new TestDummy(); $this->expectError(); $mock->expectCallCount('aMissingMethod', 2); }