Esempio n. 1
0
 public function testIsNotInstanceOf()
 {
     $this->object(new stdClass())->isNotInstanceOf('exception')->if($asserter = new sut($generator = new asserter\generator()))->then->exception(function () use($asserter) {
         $asserter->object(new stdClass())->isNotInstanceOf('\\stdClass');
     })->isInstanceOf('mageekguy\\atoum\\asserter\\exception')->hasMessage('object(stdClass) is an instance of \\stdClass')->exception(function () use($asserter) {
         $asserter->object(new stdClass())->isNotInstanceOf(new stdClass());
     })->isInstanceOf('mageekguy\\atoum\\asserter\\exception')->hasMessage('object(stdClass) is an instance of object(stdClass)');
 }