public function testFitsInto() { $box = new Size(800, 600); $fits = $box->fitsInto(new Size(100, 100)); $this->assertFalse($fits); $box = new Size(800, 600); $fits = $box->fitsInto(new Size(1000, 100)); $this->assertFalse($fits); $box = new Size(800, 600); $fits = $box->fitsInto(new Size(100, 1000)); $this->assertFalse($fits); $box = new Size(800, 600); $fits = $box->fitsInto(new Size(800, 600)); $this->assertTrue($fits); $box = new Size(800, 600); $fits = $box->fitsInto(new Size(1000, 1000)); $this->assertTrue($fits); $box = new Size(100, 100); $fits = $box->fitsInto(new Size(800, 600)); $this->assertTrue($fits); $box = new Size(100, 100); $fits = $box->fitsInto(new Size(80, 60)); $this->assertFalse($fits); }