예제 #1
0
파일: object.php 프로젝트: ssgonchar/atoum
 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)');
 }