public function testMockery() { $someObj = new Baseball(); $someVal = true; $mockeryMock = \Mockery::mock('Baseball'); $mockeryMock->shouldReceive('submitAtBat')->with('1', 'bh')->once()->andReturn($someVal); $this->assertEquals($someVal, $someObj->submitAtBat('1', 'bh')); // }