Пример #1
0
 /**
  * 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');
 }
Пример #2
0
 function testSettingExpectationOnMissingMethodThrowsError()
 {
     $mock = new TestDummy();
     $this->expectError();
     $mock->expectCallCount('aMissingMethod', 2);
 }